Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Mod Rewrite: Redirecting PHP Pages to seperate directories

Status
Not open for further replies.

jgd12345

Technical User
Apr 22, 2003
124
GB
Hi I wish to access my files at instead of
So I created a .htaccess file (and put it in the forum directory) with the following content:

RewriteEngine on
RewriteRule ^forums/([0-9]+)/([0-9]+) forum/forumdisplay.php?fid=$1&page=$2
RewriteRule ^forums/([0-9]+) forum/forumdisplay.php?fid=$1
RewriteRule ^threads/([0-9]+)/([0-9]+) forum/viewthread.php?tid=$1&page=$2
RewriteRule ^threads/([0-9]+) forum/viewthread.php?tid=$1

But it does not want to work. I'd be greatful if anyone could help me out. Thanks
 
Hi this is sorted now. Needed to change ^threads to ^forum/threads. Silly me.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top