![]() |
![]() |
![]() |
||||
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 |
So Fucking Banned
Industry Role:
Join Date: May 2001
Location: Your mom's front hole
Posts: 40,906
|
301 redirect help
I have an old site that I want to redirect into another site.
I have this on my old site: Options +FollowSymLinks RewriteEngine on RewriteRule (.*) http://www.newsite.com/$1 [R=301,L] With this, whenever you visit a url from the old site, for example: www.oldsite.com/hello.html it redirects to www.newsite.com/hello.html How to I set it up to redirect www.oldsite.com/whatever.html to www.oldsite.com/ ? Thanks |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Unregistered Abuser
Industry Role:
Join Date: Oct 2007
Posts: 15,547
|
Options +FollowSymlinks
RewriteEngine on rewritecond %{http_host} ^domain.com [nc] rewriterule ^(.*)$ http://www.domain.com/$1 [r=301,nc] |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
So Fucking Banned
Industry Role:
Join Date: May 2001
Location: Your mom's front hole
Posts: 40,906
|
Thanks, but that's not cutting it.
I forgot to mention there are no urls on the server of the olddomain.com There used to be but not anymore and I need to 301 these all into my newdomain.com Do I need to specify in the redirect all the urls on the old domain if they are not there? Everything im trying is just redirecting olddomain.com/oldurl.html to newdomain.com/oldurl.html |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
Unregistered Abuser
Industry Role:
Join Date: Oct 2007
Posts: 15,547
|
this works for me here
Options +FollowSymLinks RewriteEngine on RewriteRule (.*) http://www.newdomain.com/$1 [R=301,L] |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 | |
So Fucking Banned
Industry Role:
Join Date: May 2001
Location: Your mom's front hole
Posts: 40,906
|
Quote:
I need it to redirect http://www.olddomain.com/whatever-url-someone-hits.html to http://www.newdomain.com/ |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 |
Unregistered Abuser
Industry Role:
Join Date: Oct 2007
Posts: 15,547
|
ok you should put a 404 on the old domain that redirects everything to the root first
![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |