I'm trying to make my .htaccess better and easy to update in the future
it's currently
Options +FollowSymLinks
RewriteEngine On
RewriteBase /
RewriteRule ^register?$ register.php [QSA]
RewriteRule ^logout?$ logout.php [QSA]
RewriteRule ^contact?$ contact.php [QSA]
RewriteRule ^search?$ search.php [QSA]
RewriteRule ^settings?$ settings.php [QSA]
RewriteRule ^about?$ page.php?url=about [QSA]
RewriteRule ^privacy?$ page.php?url=privacy [QSA]
RewriteRule ^terms?$ page.php?url=terms [QSA]
Is there was to make it like - this to;
RewriteRule ^register?$ register.php [QSA]
RewriteRule ^logout?$ logout.php [QSA]
RewriteRule ^contact?$ contact.php [QSA]
RewriteRule ^search?$ search.php [QSA]
RewriteRule ^settings?$ settings.php [QSA]
if abc.php php file exists, it can automatically supports /abc URL and display abc.php? otherwise the list will get really long..
is there a way to make;
RewriteRule ^about?$ page.php?url=about [QSA]
RewriteRule ^privacy?$ page.php?url=privacy [QSA]
RewriteRule ^terms?$ page.php?url=terms [QSA]
into 1 line?
something like RewriteRule ^(terms|privacy|about)?$ page.php?url=(terms|privacy|about)[QSA]
My really new with htaccess, I really appreciate your input