![]() |
Help with 301 redirects.
Is this the exact correct code for permanently redirecting individual pages through the .htaccess file?:
RewriteEngine On Redirect 301 /main.html http://www.mysite.com/main.php If I have many individual pages to redirect do I do this?: RewriteEngine On Redirect 301 /main.html http://www.mysite.com/main.php Redirect 301 /tits.html http://www.mysite.com/tits.php Redirect 301 /ass.html http://www.mysite.com/ass.php Redirect 301 /teens.html http://www.mysite.com/teens.php Redirect 301 /videobox.html http://www.mysite.com/video-box.php Any help would be awesome. I also have the option through my hosting control panel to input one domain at a time for 301 redirects. I would prefer to learn this myself so any guidance is appreciated. |
I knew I should have put BOOBS in the title.
Can anyone help? With the 301 issue that is. |
Any help with this issue?
|
You'll find some better ways here:
http://www.google.com/search?q=htacc...ct+html+to+php |
Are you pretty much just redirecting .html files to the equivalent .php file?
|
The first page for the Google search is this:
http://www.webweaver.nu/html-tips/web-redirection.shtml It gives the same example that I wrote in this thread for redirecting a single/individual page: Redirect 301 /oldpage.html http://www.example.com/newpage.html I am changing all html files to php but a lot of the new files are named differently. For example: 8thstreetlatinas.html to 8th-street-latinas.php Therefore should I use the initial example I used which seems to be the same as the one above? Thanks. |
Why are you redirecting form .html to .php anyway?
|
Quote:
Regex version is Redirect 301 /(.*).html http://www.example.com/$1.php |
Why not just let PHP parse .html?
Code:
RemoveHandler .html .htm |
Quote:
By doing the 301 redirect there should be no loss of Search Engine rankings, correct? Thanks. |
Quote:
|
All times are GMT -7. The time now is 08:29 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc