prakash Posted July 30, 2007 Share Posted July 30, 2007 Well, I am sorry if this is not the right place for .htaccess support. Actually I want to know does .htaccess RewriteEngine works automatically when PHP is parsed by the webserver or not. Suppose I have RewriteEngine on RewriteRule ^index-([0-9]+).html index.php?page=$1 and a link in a php document like <a href="index.php?page=13">Test Link</a> so my question is does the link will be parsed to <a href="index-13.html">Test Link</a> automatically when the above Rewrite Rule is defined. or do I have to manually change the link to fit with my Rewrite Rule. Quote Link to comment Share on other sites More sharing options...
Nakor Posted July 30, 2007 Share Posted July 30, 2007 You will have to manually change your links. Quote Link to comment Share on other sites More sharing options...
prakash Posted July 30, 2007 Author Share Posted July 30, 2007 thanks Quote Link to comment Share on other sites More sharing options...
HaLo2FrEeEk Posted July 30, 2007 Share Posted July 30, 2007 You could parse the page code before printing it, finding all dynamic links and using the php to rewrite them to the proper format, preg_replace would be a good function to look at for this. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.