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 09-16-2005, 06:28 AM   #1
Realpascal
Confirmed User
 
Join Date: Jun 2005
Location: Dutchie !!!
Posts: 2,119
Redirect help needed..

I want to make the following redirection:

www.mydomain/folder
redirected to:
www.mydomain/folder/folder2

But when I use a .htaccess
Redirect /folder http://www.mydomain.com/folder/folder1
The server goes into an endless loop.

I must be going nuts.. What am I doing wrong ?
__________________
OMGWTFBBQ
Realpascal is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-16-2005, 07:00 AM   #2
Realpascal
Confirmed User
 
Join Date: Jun 2005
Location: Dutchie !!!
Posts: 2,119
Can anyone help me out here ?
__________________
OMGWTFBBQ
Realpascal is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-16-2005, 07:01 AM   #3
taibo
Confirmed User
 
Join Date: May 2005
Posts: 3,720
use meta redirect?
taibo is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-16-2005, 07:06 AM   #4
fris
Too lazy to set a custom title
 
fris's Avatar
 
Industry Role:
Join Date: Aug 2002
Posts: 55,372
can use php to do that.

http://www.php.net/header

look at the info there
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.


WP Stuff
fris is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-16-2005, 07:06 AM   #5
darksoul
Confirmed User
 
darksoul's Avatar
 
Join Date: Apr 2002
Location: /root/
Posts: 4,997
heh, obviously.
Redirect /folder will redirect all requests, including /folder/folder2
You could redirect using mod_rewrite

Code:
RewriteEngine On
RewriteCond %{REQUEST_URI}      !^/folder/folder2.*$ [NC]
RewriteCond %{REQUEST_URI}       ^/folder/.*$ [NC]
RewriteRule ^(.*)       http://www.domain.com/folder/folder2/$1 [R,L]
__________________
1337 5y54|)m1n: 157717888
BM-2cUBw4B2fgiYAfjkE7JvWaJMiUXD96n9tN
Cambooth
darksoul is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-16-2005, 07:07 AM   #6
Realpascal
Confirmed User
 
Join Date: Jun 2005
Location: Dutchie !!!
Posts: 2,119
Quote:
Originally Posted by taibo
use meta redirect?
Possible, but I would prefer to use .htaccess. Thanks for the suggestion anyway..
__________________
OMGWTFBBQ
Realpascal is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-16-2005, 07:09 AM   #7
Realpascal
Confirmed User
 
Join Date: Jun 2005
Location: Dutchie !!!
Posts: 2,119
Quote:
Originally Posted by fris
can use php to do that.

http://www.php.net/header

look at the info there
Thanks Fris, I didn't know that option
__________________
OMGWTFBBQ
Realpascal is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-16-2005, 07:12 AM   #8
grumpy
Too lazy to set a custom title
 
grumpy's Avatar
 
Join Date: Jan 2002
Location: Holland
Posts: 9,870
in the page < s c r i p t > window.location='the url'< / s c r i p t >

without the spaces
__________________
Don't let greediness blur your vision | You gotta let some shit slide
icq - 441-456-888
grumpy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-16-2005, 07:17 AM   #9
Realpascal
Confirmed User
 
Join Date: Jun 2005
Location: Dutchie !!!
Posts: 2,119
Thanks for all help, guys !

Gave Darksoul's option a try, and it worked great.
__________________
OMGWTFBBQ
Realpascal is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-16-2005, 07:20 AM   #10
"Rocky"
I want an Adult.com Jacket
 
Industry Role:
Join Date: Jul 2005
Location: Philadelphia Morning
Posts: 318
http://www.mydomain/folder/index.php >>

<?
header("Location: http://www.mydomain/folder/folder2");
?>
"Rocky" 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.