![]() |
![]() |
![]() |
||||
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: 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 ! |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Too lazy to set a custom title
Join Date: Oct 2001
Location: Spartaaaaaaaaa
Posts: 14,136
|
Code:
redirect 301 /OLDDIRECTORY/ http://www.MYSITE.com/NEW_DIR/SOMETHING.HTML should work ^^^ |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
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 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 | |
Too lazy to set a custom title
Join Date: Oct 2001
Location: Spartaaaaaaaaa
Posts: 14,136
|
Quote:
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/ if still doesn't work coctact your host, dunno |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
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 ;] |
![]() |
![]() ![]() ![]() ![]() ![]() |