|
|
|
||||
|
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 |
|
Confirmed User
Join Date: Nov 2003
Location: 237 619 975
Posts: 8,944
|
htaccess 301 redirect problem...
if I want to redirect www.example.com/turd/ and every page that begins with that part of the URL, but not redirect www.example.com/anythingelse/, and I want every page redirected to the hompage of a different domain.
I've tried a few things, none worked. The search results are all cluster fucked with people wanting www or non-www, redirecting within the same domain, or redirecting each url from one domain to a new domain. I want every page I redirect to go to the same homepage, forget the extension on the end. If anyone knows how to do this I would appreciate the answer.
__________________
|
|
|
|
|
|
#2 |
|
Damn Right I Kiss Ass!
Industry Role:
Join Date: Dec 2003
Location: Cowtown, USA
Posts: 32,428
|
Code:
RewriteEngine On RewriteRule ^turd/(.+)$ http://www.adifferentdomain.com [R=301,L] RewriteRule ^turd/$ http://www.adifferentdomain.com [R=301,L] |
|
|
|
|
|
#3 |
|
Confirmed User
Industry Role:
Join Date: Apr 2002
Location: Los Angeles
Posts: 6,986
|
htaccess is awesome, so many useful things you can do with it.
|
|
|
|
|
|
#4 |
|
Damn Right I Kiss Ass!
Industry Role:
Join Date: Dec 2003
Location: Cowtown, USA
Posts: 32,428
|
Tired of running galleries through the main site?
|
|
|
|
|
|
#5 |
|
Too lazy to set a custom title
Join Date: Dec 2004
Posts: 17,513
|
hi v_rocks, thanks for cyber sex last night
|
|
|
|
|
|
#6 |
|
Confirmed User
Join Date: Nov 2003
Location: 237 619 975
Posts: 8,944
|
Thanks man I'll try that. I was looking for your ICQ earlier and then I noticed people leaving theirs for you. I assumed you don't have it posted. I was looking at your stats but I'm not familiar with a lot of the sponsors. Who performed best with, hmmm, oh hell what do I call them... pornstars who are popular (for now anyway, maybe not next year) but not under contract to studios, like all the chicks at Brazzers, Muffia, the ones that usually make up most of the top 20 at FREEONES, etc?
__________________
|
|
|
|
|
|
#7 | |
|
Confirmed User
Join Date: Nov 2003
Location: 237 619 975
Posts: 8,944
|
Quote:
This redirect didnt work at all. Most of the things I tried worked partially. I think I fucked something up.
__________________
|
|
|
|
|
|
|
#8 |
|
Confirmed User
Join Date: Jul 2006
Location: NoHo
Posts: 5,970
|
This is a nice place to find 301 redirect info:
hxxp://www.isitebuild.com/301-redirect.htm
__________________
![]() ICQ: 266990876
|
|
|
|
|
|
#9 | |
|
Now choke yourself!
Industry Role:
Join Date: Apr 2006
Posts: 12,085
|
Quote:
Code:
<IfModule mod_rewrite.c> RewriteEngine On RewriteBase /turd RewriteRule ^(.*?)$ http://www.adifferentdomain.com [R=301,L] </IfModule>
__________________
|
|
|
|
|
|
|
#10 |
|
Confirmed User
Join Date: Nov 2003
Location: 237 619 975
Posts: 8,944
|
internal server error 500 on that one.
__________________
|
|
|
|
|
|
#11 |
|
Now choke yourself!
Industry Role:
Join Date: Apr 2006
Posts: 12,085
|
That should work with Apache 1.2-2.x. Some hosts don't have AllowOverride set to All; you can try removing the <IfModule> directives, but that's just a safety harness.
Depending on your config, the terminator can be confusing it. Try this: Code:
RewriteBase /turd RewriteRule ^(.*) http://www.newhost.com/ [R=301,L]
__________________
|
|
|
|
|
|
#12 |
|
Damn Right I Kiss Ass!
Industry Role:
Join Date: Dec 2003
Location: Cowtown, USA
Posts: 32,428
|
|
|
|
|
|
|
#13 |
|
Confirmed User
Join Date: Nov 2003
Location: 237 619 975
Posts: 8,944
|
Anyone else have a suggestion ?
__________________
|
|
|
|
|
|
#14 |
|
Confirmed User
Join Date: Nov 2003
Location: 237 619 975
Posts: 8,944
|
I'm desperate here. Does anyone know what could be wrong?
__________________
|
|
|
|
|
|
#15 | |
|
Confirmed User
Join Date: Nov 2003
Location: 237 619 975
Posts: 8,944
|
Quote:
www.example.com/turd/?p=43 is getting redirected to: http://www.adifferentdomain.com/?p=43. I want it to redirect to the homepage as well. I want it to drop the "?p=43". Anyone know what to change?
__________________
|
|
|
|
|