regex - Change index.php in urls with .htaccess -
i want replace index.php in urls
my url example:
http://example.com/index.php/blog/foo
i need be:
http://example.com/my.php/blog/foo or http://example.com/name/blog/foo http://example.com/shop/blog/foo ...
you can use code in document_root/.htaccess
file:
rewriteengine on rewritebase / rewriterule ^[^/]+/(blog/.+)$ index.php/$1 [l,nc]
Comments
Post a Comment