Forum Moderators: phranque
RewriteEngine on
RewriteCond %{REQUEST_URI} !-d
RewriteRule (.*)/(.*)\.htm mypage.php?parm1=$1&parm2=$2
so a page like
www.mydomain.com/p1/p2.htm
will translate to www.mydomain.com/mypage.php?parm1=p1&parm2=p2
it works fine, except that the baseurl is altered, so everything thinks the baseurl is www.mydomain.com/p1/
so relative image links fail, as does a recursive repost of the page.
any ideas how I can remedy this annoyance?
Any suggestions would be grand!
NIN
Welcome to WebmasterWorld!
Have you tried using the RewriteBase [httpd.apache.org] directive?
Jim