Mind blowing SEO improving and Google rank increasing Signature Rotator SEO Tool.

Thread: 

htaccess 301 redirect?

Tags: None
Ads
Guest referral

 

#1
Unregistered
How to 301 redirect my old URL to new one using .htaccess file?
marcus_avrelius Offline referral

Posts: 2,424
Joined: May 2013
Reputation: 102

#2
Support Team
If you can I recommend you to use PHP 301 redirect it's much easier and secure cause .htaccess manipulation can lead to some serious issues if you don't know what you are doing.

301 PHP redirect:
PHP Code:
header("Location: URL"true301);
exit(); 

Replace URL in the code above with the URL of the website or web-page to where you want redirect the content.

Here is .htaccess direct code:
Code:
# Replace me with your comment
Redirect 301 /old-page.html http://www.example.com/new-page.html





User(s) browsing this thread: 1 Guest(s)