0

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.)

HBruijn
  • 72,524
  • 21
  • 127
  • 192
user75734
  • 11
  • 2

1 Answers1

0

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.

user75734
  • 11
  • 2