Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

At the moment I have…

RewriteCond $1 !^(index\.php|img|css|js|fonts|jw|mail|uploads|user_guide) 
RewriteRule ^(.*)$ /index.php/$1 [L]

However, I want to be able to rewrite a url like /page/about/ similarly so it is actually /index.php/page/id/about

How would I go about doing this? Thanks!

(I actually did this once before and then killed my htaccess file and couldn't remember how I did it in the first place.)

share|improve this question

For the moment I've fixed it with

RewriteCond $1 ^page
RewriteRule ^(.*)$ /index.php/page/id/$1

And then from there extracted the page name/id.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.