![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Confirmed User
Join Date: Feb 2007
Location: S. California
Posts: 1,584
|
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.
__________________
![]() Honest adult reviews? - Adult Reviews Ethnic paysite owners? - Get reviewed Follow me? - Twitter Porn |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Confirmed User
Join Date: Feb 2007
Location: S. California
Posts: 1,584
|
I knew I should have put BOOBS in the title.
Can anyone help? With the 301 issue that is.
__________________
![]() Honest adult reviews? - Adult Reviews Ethnic paysite owners? - Get reviewed Follow me? - Twitter Porn |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
Confirmed User
Join Date: Feb 2007
Location: S. California
Posts: 1,584
|
Any help with this issue?
__________________
![]() Honest adult reviews? - Adult Reviews Ethnic paysite owners? - Get reviewed Follow me? - Twitter Porn |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
Confirmed User
Join Date: Dec 2004
Location: Vancouver
Posts: 4,325
|
You'll find some better ways here:
http://www.google.com/search?q=htacc...ct+html+to+php |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
Guest
Posts: n/a
|
Are you pretty much just redirecting .html files to the equivalent .php file?
|
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 |
Confirmed User
Join Date: Feb 2007
Location: S. California
Posts: 1,584
|
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.
__________________
![]() Honest adult reviews? - Adult Reviews Ethnic paysite owners? - Get reviewed Follow me? - Twitter Porn |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 |
<&(©¿©)&>
Industry Role:
Join Date: Jul 2002
Location: Chicago
Posts: 47,882
|
Why are you redirecting form .html to .php anyway?
__________________
Custom Software Development, email: woj#at#wojfun#.#com to discuss details or skype: wojl2000 or gchat: wojfun or telegram: wojl2000 Affiliate program tools: Hosted Galleries Manager Banner Manager Video Manager ![]() Wordpress Affiliate Plugin Pic/Movie of the Day Fansign Generator Zip Manager |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#8 | |
Guest
Posts: n/a
|
Quote:
Regex version is Redirect 301 /(.*).html http://www.example.com/$1.php |
|
![]() ![]() ![]() ![]() ![]() |
![]() |
#9 |
Confirmed User
Industry Role:
Join Date: Sep 2002
Posts: 1,209
|
Why not just let PHP parse .html?
Code:
RemoveHandler .html .htm AddType application/x-httpd-php .php .htm .html
__________________
Awesome cloud hosting by DigitalOcean |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#10 | |
Confirmed User
Join Date: Feb 2007
Location: S. California
Posts: 1,584
|
Quote:
By doing the 301 redirect there should be no loss of Search Engine rankings, correct? Thanks.
__________________
![]() Honest adult reviews? - Adult Reviews Ethnic paysite owners? - Get reviewed Follow me? - Twitter Porn |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#11 |
Guest
Posts: n/a
|
No, 301 tells the search engines that the file has moved, and to replace it with the new location.
|
![]() ![]() ![]() ![]() ![]() |