How can I get more pages with mod_rewrite
Posted
by
wesszzel
on Server Fault
See other posts from Server Fault
or by wesszzel
Published on 2012-06-12T02:30:17Z
Indexed on
2012/06/12
4:42 UTC
Read the original article
Hit count: 417
mod-rewrite
|multiple
I use the mod_rewrite on my website, but some things arent working. I want four pages.
- Index
- Contact
- News
- Portfolio
But all my links end up linking to Index! How do I change this?
I use this code:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
Thank you!!
© Server Fault or respective owner