PDA

View Full Version : Redirecting a whole directory and files?



Moh
27-10-2007, 08:53 PM
How to I redirect a whole directory such as:

/forum/showthread?t=2 to /forum/index.htm
and same with every other file in there?

MrCraig
27-10-2007, 09:04 PM
erm.. i dont get it :S

index.htm and showthread.php are in the same directory?

Moh
27-10-2007, 09:05 PM
erm.. i dont get it :S

index.htm and showthread.php are in the same directory?
redirecting all files to 1 file..

MrCraig
27-10-2007, 09:23 PM
Erm, i dont think you'll be able to tbh,

cos if you redirect the whole directory to something inside the directory, it will try and redirect again and again and again.

And nothing would show up.

Nli.
28-10-2007, 01:36 PM
wildcard redirect? ...

Cixso
28-10-2007, 02:08 PM
wildcard redirect? ...

Exactly.

Just do a wildcard.

DeejayMachoo$
28-10-2007, 02:30 PM
re-writerule?

wont redirect but will display a file...

QuickScriptz
28-10-2007, 04:12 PM
Try these links for a little insight into what they are talking about:

http://www.google.com/search?q=.htaccess+wildcard+redirect
http://www.webmasterworld.com/forum92/1148.htm
http://usertools.plus.net/tutorials/id/5

Want to hide these adverts? Register an account for free!