Mod_rewrite / clear urls

beam / 2010-12-10 18:42:29   

Ive had clean urls up and running for a while now, but after researching mod_rewrite and going through a few tutorials i still cant get an additional basic rewrite to happen.

heres the rule

  1. RewriteRule ^page/(.*) .?page=$1 [L]

just looking to clean up some dynamic pages

and the rest of the .htaccess file..

  1. RewriteCond %{REQUEST_FILENAME} -f [OR]
  2. RewriteCond %{REQUEST_FILENAME} -d
  3. RewriteRule ^(.+) - [PT,L]
  4. RewriteRule ^(.+) index.php
  5. RewriteRule ^page/(.*) .?page=$1 [L]
Vaska A / 2010-12-11 12:16:49   

Why do you have the 'page' rule? Indexhibit does use that...

htaccess can be rather difficult to control.

beam / 2010-12-12 14:07:33   

i have it on a custom news/blog plugin , displays x amount of rows per page using pagination.

but wanted to clean up the url with .htaccess

htaccess can be rather difficult to control

so true

This thread has been closed, thank you.