Mod_rewrite
-
Hi.
I have used the search feature, but haven’t seem to have found a solution to my problem.
I basically want to have my wordpress rewrite rule:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>And on top of that, I want to use my own rewrite rule for some of my pages:
RewriteRule ^about$ about.php
RewriteRule ^photographs$ gallery.php
RewriteRule ^templates$ templates.php
RewriteRule ^links$ links.php
RewriteRule ^contact$ contact.php
RewriteRule ^contactsecure$ contact_secure.php
RewriteRule ^accessibility$ accessibility.php
RewriteRule ^privacy$ privacy.php
RewriteRule ^legal$ copyright.phpBut the problem is that if I put these rules together, they clash. Is there anyway around this without me having to use wordpress as a CMS?
- The topic ‘Mod_rewrite’ is closed to new replies.