Hi All
I am using a mod rewrite to ensure all HTTP requests are directed to the index.php page of my site. The rewrite rule is as follows and I use this regularly:
RewriteRule \.(css|jpe?g|gif|png|swf|js|bmp|pdf|html|txt|doc|xls|flv|ico|xml|php|asp|htm)$ - [L]
RewriteRule ^(.*)?$ index.php
Now the site I am building allows users to submit external URLs to other websites and when users of my sites click those URL's I open up a new window, pass the external URL through the REQUEST URI and then redirect that user to the external website via the new browser window.
The problem I have is that if the external URL is something like this for example:
www.mywebsite.com/mypage.php
I believe the rewrite rule is failing because of the PHP in the URL.
Is there anything that can be done to get around this?
Thanks for reading.