RewriteRule ^(.*).html$ /index.php
For my next site, I want to use a similar rewrite rule to have
extension-less url's, (i.e. "www.mysite.com/mypage" ).
My ability with regex is limited however. Can anyone supply a suitable
expression? I'd really appreciate it!
Thanks!
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
Which basically redirects any request for a non-existing file or
directory to be transparently redirected to /index.php so a request
for mysite.com/mypage would show /index.php but the address in the
browser would still read mysite.com/mypage