GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   htaccess help (https://gfy.com/showthread.php?t=1047667)

Horny Guy 11-28-2011 08:55 PM

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

Solace 11-28-2011 08:57 PM

You might want to be more specific as this is currently some mix of 302,404, and or mod redirect...

Horny Guy 11-28-2011 09:01 PM

301 i normaly use


thanks

CYF 11-28-2011 09:03 PM

RedirectPermanent / http://newsite.com

raymor 11-28-2011 09:11 PM

RewriteRule (.*) http://othersite.com/$1

Horny Guy 11-28-2011 09:12 PM

Quote:

Originally Posted by CYF (Post 18591688)
RedirectPermanent / http://newsite.com

done this ...not work ...must be server then im guessing

Horny Guy 11-28-2011 09:16 PM

Quote:

Originally Posted by raymor (Post 18591704)
RewriteRule (.*) http://othersite.com/$1

thanks will this work for old pages

to go

http://othersite.com/travel to http://newsite.com/travel ?

raymor 11-28-2011 09:22 PM

Quote:

Originally Posted by Horny Guy (Post 18591711)
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

CYF 11-28-2011 09:36 PM

Quote:

Originally Posted by Horny Guy (Post 18591707)
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.

Horny Guy 11-28-2011 09:45 PM

Quote:

Originally Posted by CYF (Post 18591748)
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

bean-aid 11-28-2011 09:54 PM

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]


All times are GMT -7. The time now is 02:36 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123