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-03-2009, 03:07 PM   #1
Kard63
Confirmed User
 
Kard63's Avatar
 
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.
__________________
Kard63 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-03-2009, 03:39 PM   #2
V_RocKs
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]
V_RocKs is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-03-2009, 03:50 PM   #3
tiger
Confirmed User
 
tiger's Avatar
 
Industry Role:
Join Date: Apr 2002
Location: Los Angeles
Posts: 6,986
htaccess is awesome, so many useful things you can do with it.
__________________

tiger is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-03-2009, 03:57 PM   #4
V_RocKs
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?
V_RocKs is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-03-2009, 04:34 PM   #5
HorseShit
Too lazy to set a custom title
 
Join Date: Dec 2004
Posts: 17,513
hi v_rocks, thanks for cyber sex last night
HorseShit is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-03-2009, 06:12 PM   #6
Kard63
Confirmed User
 
Kard63's Avatar
 
Join Date: Nov 2003
Location: 237 619 975
Posts: 8,944
Quote:
Originally Posted by V_RocKs View Post
Code:
RewriteEngine On
RewriteRule ^turd/(.+)$ http://www.adifferentdomain.com [R=301,L]
RewriteRule ^turd/$ http://www.adifferentdomain.com [R=301,L]
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?
__________________
Kard63 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-03-2009, 06:30 PM   #7
Kard63
Confirmed User
 
Kard63's Avatar
 
Join Date: Nov 2003
Location: 237 619 975
Posts: 8,944
Quote:
Originally Posted by V_RocKs View Post
Code:
RewriteEngine On
RewriteRule ^turd/(.+)$ http://www.adifferentdomain.com [R=301,L]
RewriteRule ^turd/$ http://www.adifferentdomain.com [R=301,L]

This redirect didnt work at all. Most of the things I tried worked partially. I think I fucked something up.
__________________
Kard63 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-03-2009, 06:40 PM   #8
qxm
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
qxm is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-03-2009, 10:19 PM   #9
GrouchyAdmin
Now choke yourself!
 
GrouchyAdmin's Avatar
 
Industry Role:
Join Date: Apr 2006
Posts: 12,085
:stoned

Quote:
Originally Posted by V_RocKs View Post
Code:
RewriteEngine On
RewriteRule ^turd/(.+)$ http://www.adifferentdomain.com [R=301,L]
RewriteRule ^turd/$ http://www.adifferentdomain.com [R=301,L]
Code:
<IfModule mod_rewrite.c>
  RewriteEngine On
  RewriteBase /turd
  RewriteRule ^(.*?)$ http://www.adifferentdomain.com [R=301,L]
</IfModule>
__________________
GrouchyAdmin is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-03-2009, 10:24 PM   #10
Kard63
Confirmed User
 
Kard63's Avatar
 
Join Date: Nov 2003
Location: 237 619 975
Posts: 8,944
Quote:
Originally Posted by GrouchyAdmin View Post
Code:
<IfModule mod_rewrite.c>
  RewriteEngine On
  RewriteBase /turd
  RewriteRule ^(.*?)$ http://www.adifferentdomain.com [R=301,L]
</IfModule>
internal server error 500 on that one.
__________________
Kard63 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-03-2009, 10:35 PM   #11
GrouchyAdmin
Now choke yourself!
 
GrouchyAdmin's Avatar
 
Industry Role:
Join Date: Apr 2006
Posts: 12,085
Quote:
Originally Posted by Kard63 View Post
internal server error 500 on that one.
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]
__________________
GrouchyAdmin is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-04-2009, 01:55 AM   #12
V_RocKs
Damn Right I Kiss Ass!
 
Industry Role:
Join Date: Dec 2003
Location: Cowtown, USA
Posts: 32,428
Quote:
Originally Posted by jdavis View Post
hi v_rocks, thanks for cyber sex last night
You sexy bitch!
V_RocKs is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-04-2009, 10:32 AM   #13
Kard63
Confirmed User
 
Kard63's Avatar
 
Join Date: Nov 2003
Location: 237 619 975
Posts: 8,944
Anyone else have a suggestion ?
__________________
Kard63 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-05-2009, 12:08 PM   #14
Kard63
Confirmed User
 
Kard63's Avatar
 
Join Date: Nov 2003
Location: 237 619 975
Posts: 8,944
I'm desperate here. Does anyone know what could be wrong?
__________________
Kard63 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-06-2009, 11:07 AM   #15
Kard63
Confirmed User
 
Kard63's Avatar
 
Join Date: Nov 2003
Location: 237 619 975
Posts: 8,944
Quote:
Originally Posted by V_RocKs View Post
Code:
RewriteEngine On
RewriteRule ^turd/(.+)$ http://www.adifferentdomain.com [R=301,L]
RewriteRule ^turd/$ http://www.adifferentdomain.com [R=301,L]
This is redirecting the home page correctly but:
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?
__________________
Kard63 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.