Page 1 of 1

Mod Rewrite Help v2

Posted: Mon Jun 25, 2007 9:09 am
by shiznatix
I am now a bit more expierenced with mod rewrite but I am having a bit of a strange problem. I have a symbolic link folder called poker-forum and I need it to be treated as a folder but it is not happening because of this rule I have:

Code: Select all

RewriteRule ^([a-z_-]+)$ $1.php
RewriteRule ^([a-z_-]+)/$ $1.php
which is no fun because I have another folder that I can directly go to no problem. I have tried this rule to make all poker-forum entries to go to the poker-forum link folder:

Code: Select all

RewriteRule ^poker-forum$ poker-forum/ [QSA]
RewriteRule ^poker-forum/$ poker-forum/ [QSA]
but that does not send anything to the folder.

can anyone give me a little help?

Posted: Mon Jun 25, 2007 9:14 am
by Gente
Maybe something like this

Code: Select all

RewriteRule ^poker-forum$ poker-forum/ [L]
RewriteRule ^poker-forum/$ poker-forum/ [L]
RewriteRule ^([a-z_-]+)$ $1.php
RewriteRule ^([a-z_-]+)/$ $1.php

Posted: Mon Jun 25, 2007 9:21 am
by shiznatix
the L flag did the trick, thanks