.htaccess index page conflict in rewrite rule

Viewed 27

I have created a rewrite rule in my .htaccess file. What this rule does is essentially puts a web slug at the end of the web address as though it is in the root directory.

ie. mywebsite.com/contact

 RewriteRule ^(.*) views/page.php?page_slug=$1 [QSA]

The issue now is that this conflicts with the root directory where the index.php is located.

Any ideas of a workaround?

0 Answers
Related