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

php - Hide output during test execution -

javascript - Migrate custom AngularJS filter from 1.2.28 to 1.4.x -

Update Magento products with multiple images -