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 301 redirect problem... (https://gfy.com/showthread.php?t=897704)

Kard63 04-03-2009 03:07 PM

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.

V_RocKs 04-03-2009 03:39 PM

Code:


RewriteEngine On
RewriteRule ^turd/(.+)$ http://www.adifferentdomain.com [R=301,L]
RewriteRule ^turd/$ http://www.adifferentdomain.com [R=301,L]


tiger 04-03-2009 03:50 PM

htaccess is awesome, so many useful things you can do with it.

V_RocKs 04-03-2009 03:57 PM

Tired of running galleries through the main site?

HorseShit 04-03-2009 04:34 PM

hi v_rocks, thanks for cyber sex last night

Kard63 04-03-2009 06:12 PM

Quote:

Originally Posted by V_RocKs (Post 15705745)
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 04-03-2009 06:30 PM

Quote:

Originally Posted by V_RocKs (Post 15705745)
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.

qxm 04-03-2009 06:40 PM

This is a nice place to find 301 redirect info:

hxxp://www.isitebuild.com/301-redirect.htm

GrouchyAdmin 04-03-2009 10:19 PM

Quote:

Originally Posted by V_RocKs (Post 15705745)
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>


Kard63 04-03-2009 10:24 PM

Quote:

Originally Posted by GrouchyAdmin (Post 15706516)
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.

GrouchyAdmin 04-03-2009 10:35 PM

Quote:

Originally Posted by Kard63 (Post 15706529)
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]


V_RocKs 04-04-2009 01:55 AM

Quote:

Originally Posted by jdavis (Post 15705881)
hi v_rocks, thanks for cyber sex last night

You sexy bitch!

Kard63 04-04-2009 10:32 AM

Anyone else have a suggestion ?

Kard63 04-05-2009 12:08 PM

I'm desperate here. Does anyone know what could be wrong?

Kard63 04-06-2009 11:07 AM

Quote:

Originally Posted by V_RocKs (Post 15705745)
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?


All times are GMT -7. The time now is 07:47 PM.

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