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 11-28-2011, 08:55 PM   #1
Horny Guy
Confirmed User
 
Join Date: Jan 2002
Location: Hervey Bay QLD
Posts: 1,677
htaccess help

After bit of help

Can normaly do this but nothing i have come up with works ...

redirecting a old site to a new site

www.oldsite.com to new www.newsite.com

also need to do all the pages

www.oldsite.com/Folder to www.newsite.com/Folder
__________________
Great hosting and Lots of Ip's
Horny Guy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-28-2011, 08:57 PM   #2
Solace
So Fucking Banned
 
Industry Role:
Join Date: Nov 2011
Posts: 995
You might want to be more specific as this is currently some mix of 302,404, and or mod redirect...
Solace is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-28-2011, 09:01 PM   #3
Horny Guy
Confirmed User
 
Join Date: Jan 2002
Location: Hervey Bay QLD
Posts: 1,677
301 i normaly use


thanks
__________________
Great hosting and Lots of Ip's
Horny Guy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-28-2011, 09:03 PM   #4
CYF
Coupon Guru
 
CYF's Avatar
 
Industry Role:
Join Date: Mar 2009
Location: Minneapolis
Posts: 10,973
RedirectPermanent / http://newsite.com
__________________
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 11-28-2011, 09:11 PM   #5
raymor
Confirmed User
 
Join Date: Oct 2002
Posts: 3,745
RewriteRule (.*) http://othersite.com/$1
__________________
For historical display only. This information is not current:
support@bettercgi.com ICQ 7208627
Strongbox - The next generation in site security
Throttlebox - The next generation in bandwidth control
Clonebox - Backup and disaster recovery on steroids
raymor is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-28-2011, 09:12 PM   #6
Horny Guy
Confirmed User
 
Join Date: Jan 2002
Location: Hervey Bay QLD
Posts: 1,677
Quote:
Originally Posted by CYF View Post
RedirectPermanent / http://newsite.com
done this ...not work ...must be server then im guessing
__________________
Great hosting and Lots of Ip's
Horny Guy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-28-2011, 09:16 PM   #7
Horny Guy
Confirmed User
 
Join Date: Jan 2002
Location: Hervey Bay QLD
Posts: 1,677
Quote:
Originally Posted by raymor View Post
RewriteRule (.*) http://othersite.com/$1
thanks will this work for old pages

to go

http://othersite.com/travel to http://newsite.com/travel ?
__________________
Great hosting and Lots of Ip's
Horny Guy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-28-2011, 09:22 PM   #8
raymor
Confirmed User
 
Join Date: Oct 2002
Posts: 3,745
Quote:
Originally Posted by Horny Guy View Post
thanks will this work for old pages

to go

http://othersite.com/travel to http://newsite.com/travel ?
Yeah that's the $1 part. $1 represents the path portion of the URL, captured in the parentheses on the left hand side. You may add [QSA] on the end for a query string, the part after the question mark in a URL like search.php?term=rewrite+contributors

Last edited by raymor; 11-28-2011 at 09:23 PM..
raymor is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-28-2011, 09:36 PM   #9
CYF
Coupon Guru
 
CYF's Avatar
 
Industry Role:
Join Date: Mar 2009
Location: Minneapolis
Posts: 10,973
Quote:
Originally Posted by Horny Guy View Post
done this ...not work ...must be server then im guessing
I should have mentioned my solution goes in your apache config and not in your htaccess, sorry about that.
__________________
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 11-28-2011, 09:45 PM   #10
Horny Guy
Confirmed User
 
Join Date: Jan 2002
Location: Hervey Bay QLD
Posts: 1,677
Quote:
Originally Posted by CYF View Post
I should have mentioned my solution goes in your apache config and not in your htaccess, sorry about that.
no probs will try some of these
__________________
Great hosting and Lots of Ip's
Horny Guy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-28-2011, 09:54 PM   #11
bean-aid
So Fucking Banned
 
Industry Role:
Join Date: Jun 2011
Location: the land of woke sleuths
Posts: 16,493
really? this is just in your htaccess folder... delete everything else out (maybe make a backup htaccess)

Options +FollowSymLinks
RewriteEngine on
RewriteRule (.*) http://www.newdomain.com/$1 [R=301,L]

Last edited by bean-aid; 11-28-2011 at 09:56 PM..
bean-aid 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.