Can't believe that I can't get this to work. I have the following url /int/FULL-DEC18-100-F899139DF5E1059396431415E770C6DD.pdf And I need to rewrite it to this /int/index.php?$1 I have this RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_URI} int RewriteRule ^int/(.*) /int/index.php [NC,L] Code (markup): But I get a 500 error. Any idea what I am doing wrong?
Just tried this RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^int/?$ int/index.php [NC,L] Code (markup): and that results in a 404 and doesn't seem to try to rewrite Just to clarify I do want the url to stay the same just load via the /int/index.php file. And that file exists.
Never Mind, I got it to work RewriteEngine On RewriteRule ^int/(.*)$ int/index.php [NC,L] Code (markup):