mod_rewrite on PHP Joomla/wordpress?

  • Thread starter Thread starter Suryadi
  • Start date Start date
S

Suryadi

Guest
Hi All,

I'm a newbie in PHP mod_rewrite, I'm just wondering anyone know, how to do mod_rewrite like the way joomla (or plugins such as sh404sef) / wordpress does? instead of write a rule for each php file
e.g.
RewriteEngine on
RewriteRule ^page/([^/\.]+)/?$ index.php?page=$1 [L]

, it seems that in .htaccess in Joomla / wordpress there are only short codes

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !^/index.php
RewriteCond %{REQUEST_URI} (/|\.php|\.html|\.htm|\.feed|\.pdf|\.raw|/[^.]*)$ [NC]
RewriteRule (.*) index.php
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]

is this codes do the mod_rewrite for them?

anyone know? or maybe any link that I can see, so I can learn?

Thank you..
 
Back
Top