Hi all
Just need some quick advice on a rewrite rule for an existing small PHP site I am working on.
In my htaccess file I have set up some rewrite rules to implement 'tidy urls' as such:
RewriteRule ^home$ homepageNew.html
RewriteRule ^about-us$ AboutUsNew.html
RewriteRule ^products$ ProductsNew.html
RewriteRule ^products/(.*)$ ProductsDetails.html
Via an Admin System I am allowing the user to create new top level menu items and therefore these could be called anything they want, hence I cannot hard code the URL into my htaccess file as I have done with the existing URL's such as:
/home
/about-us
/products
etc etc
Is there a line of code I could use which would be execute AFTER all of the above rules which would take any other url and map it to a new StandardTemplate.html file?
I tried the following:
RewriteRule ^(.*)?$ StandardTemplate.html
but this just breaks my site and all other pages do not run correctly!
Thanks