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.

Post New Thread Reply

Register GFY Rules Calendar Mark Forums Read
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 11-25-2009, 04:56 PM   #1
EthnicLover
Confirmed User
 
EthnicLover's Avatar
 
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
EthnicLover is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-25-2009, 05:07 PM   #2
EthnicLover
Confirmed User
 
EthnicLover's Avatar
 
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
EthnicLover is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-26-2009, 04:29 PM   #3
EthnicLover
Confirmed User
 
EthnicLover's Avatar
 
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
EthnicLover is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-26-2009, 04:50 PM   #4
The Sultan Of Smut
Confirmed User
 
The Sultan Of Smut's Avatar
 
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
The Sultan Of Smut is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-26-2009, 05:52 PM   #5
Killswitch - BANNED FOR LIFE
Guest
 
Posts: n/a
Are you pretty much just redirecting .html files to the equivalent .php file?
  Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-27-2009, 01:57 PM   #6
EthnicLover
Confirmed User
 
EthnicLover's Avatar
 
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
EthnicLover is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-27-2009, 05:01 PM   #7
woj
<&(©¿©)&>
 
woj's Avatar
 
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
woj is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-27-2009, 06:12 PM   #8
Killswitch - BANNED FOR LIFE
Guest
 
Posts: n/a
Quote:
Originally Posted by EthnicLover View Post
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.
You can do regex to redirect from .html to .php but for the renamed files, you'll have to put them in like you currently do.

Regex version is
Redirect 301 /(.*).html http://www.example.com/$1.php
  Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-27-2009, 06:30 PM   #9
Aric
Confirmed User
 
Aric's Avatar
 
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
Aric is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-30-2009, 10:36 AM   #10
EthnicLover
Confirmed User
 
EthnicLover's Avatar
 
Join Date: Feb 2007
Location: S. California
Posts: 1,584
Quote:
Originally Posted by Killswitch View Post
You can do regex to redirect from .html to .php but for the renamed files, you'll have to put them in like you currently do.

Regex version is
Redirect 301 /(.*).html http://www.example.com/$1.php
Thanks for the info. Since most of my pages are now in different folders and have different names it looks like I will have to do the Redirect 301 for the majority.

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
EthnicLover is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-30-2009, 03:06 PM   #11
Killswitch - BANNED FOR LIFE
Guest
 
Posts: n/a
Quote:
Originally Posted by EthnicLover View Post
Thanks for the info. Since most of my pages are now in different folders and have different names it looks like I will have to do the Redirect 301 for the majority.

By doing the 301 redirect there should be no loss of Search Engine rankings, correct?

Thanks.
No, 301 tells the search engines that the file has moved, and to replace it with the new location.
  Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks
Thread Tools



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.