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

Popular posts from this blog

qt - Using float or double for own QML classes -

Create Outlook appointment via C# .Net -

ios - Swift Array Resetting Itself -