Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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
add comment

1 Answer

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
add comment

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.