Safu Safu - 1 year ago 69
PHP Question

Hide page name in url using htaccess in php

here is my url

In this url i want to hide index.php using htaccess. So result should be

Here is my .htaccess file what i tried so far

<IfModule mod_rewrite.c>
Options -Multiviews
Options +FollowSymLinks
RewriteEngine on
RewriteRule ^/ index.php?$1 [L]

After this i am getting 404 not found . Please help me to solve this problem.

Answer Source

here you go

RewriteRule ^(.*) index.php?$1 [L]
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download