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 Mark Forums Read
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 10-03-2008, 05:43 AM   #1
klinton
So Fucking Banned
 
Industry Role:
Join Date: Apr 2003
Location: online
Posts: 8,766
htaccess 301 redirection...help

Hey , I want to redirect all traffic that goes to some directory to another url...
htaccess looks like this:
redirect / http://www.blabla.com/main.php?id=affiliate

and It redirects to url, but adds old directory name at the end of url...so it finally looks like http://www.blabla.com/main.php?id=af...ddirectoryname

how to avoid adding this old directory name to final url ?

Thanks !
klinton is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-03-2008, 05:59 AM   #2
Antonio
Too lazy to set a custom title
 
Antonio's Avatar
 
Join Date: Oct 2001
Location: Spartaaaaaaaaa
Posts: 14,136
Code:
redirect 301 /OLDDIRECTORY/ http://www.MYSITE.com/NEW_DIR/SOMETHING.HTML

should work ^^^
Antonio is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-03-2008, 06:05 AM   #3
klinton
So Fucking Banned
 
Industry Role:
Join Date: Apr 2003
Location: online
Posts: 8,766
Forbidden
You don't have permission to access /test/ on this server
klinton is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-03-2008, 06:24 AM   #4
Antonio
Too lazy to set a custom title
 
Antonio's Avatar
 
Join Date: Oct 2001
Location: Spartaaaaaaaaa
Posts: 14,136
Quote:
Originally Posted by klinton View Post
Forbidden
You don't have permission to access /test/ on this server

just tested the code on one of my servers, works 100%

where do you place your htaccess?

if your site is
Code:
http://www.mysite.com/OLDIRECTORY/
then your htaccess should be in the root directory

if still doesn't work coctact your host, dunno
Antonio is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-03-2008, 06:32 AM   #5
klinton
So Fucking Banned
 
Industry Role:
Join Date: Apr 2003
Location: online
Posts: 8,766
I placed in it subdirectory...

Well Thanks anyway,I'll set up redirection via php...don't want to mess with htaccess too much ;]
klinton 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
Thread Tools



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.