Please Use below code rewrite url using Htaccess
# For security reasons, Option followsymlinks cannot be overridden.
#Options +FollowSymlinks
Options +SymLinksIfOwnerMatch
<IfModule mod_rewrite.c>
RewriteEngine On
# main list
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !=/favicon.ico
RewriteRule ^(.*)$ index.php?url=$1 [L,QSA]
RewriteRule ^index/.html$ index.php [L,QSA]
</IfModule>
//////////////////////////////
Also Redirect module enable in httpd.conf
"Below line Remove # (By Default )"
'#LoadModule rewrite_module modules/mod_rewrite.so'
After That
'LoadModule rewrite_module modules/mod_rewrite.so'
save file restart wamp server
No comments:
Post a Comment