I want to create a rule in htaccess to rename my pages, for example:
I want that domain.com/page1 actually opens the page domain.com/content?p=page1 or domain.com/page2 actually opens the page domain.com/content?p=page2
for this I have a very simple regexp:
RewriteRule (.*)$ /content.php?p=$ [L]
now the problem is that this affects EVERYTHING even files like styles.css or functions.js, etc, or even images/logo.jpg.
So what I am looking for is for a regular expression that will forward all my pages if they do not have dots (.) or slashes (/)
for example:
domain.com/blog true
domain.com/home?lang=en true
domain.com/styles.css false
domain.com/image.png false
domain.com/folder/file false
Thanks!