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
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 04-20-2010, 08:41 PM   #1
The Dawg
Confirmed User
 
The Dawg's Avatar
 
Join Date: Apr 2002
Location: State Of Bliss
Posts: 2,438
Help with 301 redirects.

If I have:

http://www.domain.com/ford-cars/ford-focus/

how do I 301 redirect it to:

http://www.domain.com/Ford_Cars/Ford_Focus/


:
The Dawg is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-20-2010, 08:45 PM   #2
CYF
Coupon Guru
 
CYF's Avatar
 
Industry Role:
Join Date: Mar 2009
Location: Minneapolis
Posts: 10,973
RedirectPermanent /ford-cars/ford-focus Ford_Cars/Ford_Focus/

this should work in apache, ymmv
__________________
Webmaster Coupons Coupons and discounts for hosting, domains, SSL Certs, and more!
AmeriNOC Coupons | Certified Hosting Coupons | Hosting Coupons | Domain Name Coupons

CYF is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-20-2010, 09:04 PM   #3
CYF
Coupon Guru
 
CYF's Avatar
 
Industry Role:
Join Date: Mar 2009
Location: Minneapolis
Posts: 10,973
RedirectPermanent /ford-cars/ford-focus /Ford_Cars/Ford_Focus/

I should have put a / in front of Ford_Cars
__________________
Webmaster Coupons Coupons and discounts for hosting, domains, SSL Certs, and more!
AmeriNOC Coupons | Certified Hosting Coupons | Hosting Coupons | Domain Name Coupons

CYF is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-20-2010, 09:09 PM   #4
XSV
Confirmed User
 
XSV's Avatar
 
Industry Role:
Join Date: Sep 2001
Location: Cybercave.
Posts: 1,214
Try these sites if you still need help or need to do it with .htaccess.

http://www.htaccessgenerator.net/#a_redirect

http://www.htmlbasix.com/customerrorpages.shtml
XSV is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-20-2010, 09:11 PM   #5
gwidomains
Confirmed User
 
Join Date: May 2007
Posts: 426
Redirect 301 /ford-cars/ford-focus/ http://www.domain.com/Ford_Cars/Ford_Focus/

(you'll need the standard .htaccess header already organized)
gwidomains is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-20-2010, 09:13 PM   #6
fris
Too lazy to set a custom title
 
fris's Avatar
 
Industry Role:
Join Date: Aug 2002
Posts: 55,372
curious why
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.


WP Stuff
fris is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-20-2010, 09:13 PM   #7
The Dawg
Confirmed User
 
The Dawg's Avatar
 
Join Date: Apr 2002
Location: State Of Bliss
Posts: 2,438
Quote:
Originally Posted by CYF View Post
RedirectPermanent /ford-cars/ford-focus Ford_Cars/Ford_Focus/

this should work in apache, ymmv
RedirectPermanent causes an Internal Server Error.

This worked, redirected fine:

RewriteRule /ford-cars/ford-focus Ford_Cars/Ford_Focus/ [L,R=301]

BUT, if I add this line:

RewriteRule /ford-cars Ford_Cars/ [L,R=301]
RewriteRule /ford-cars/ford-focus Ford_Cars/Ford_Focus/ [L,R=301]

All of the lines after it stop working and just redirect to domain.com/Ford_Cars/

The Dawg is offline   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



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.