i want to change this url
localhost/classAds/classInc/home.php
to
localhost/classAds/classInc/home/
for this i created .htacess file as follow,
RewriteEngine On #Turn on the rewriting engine
RewriteRule ^home/?$ home.php [NC,L] 开发者_StackOverflow#Handle requests for "home"
and put this file in
C:\wamp\www\classAds and then C:\wamp\www\classAds\classInc
but at both places it did not work,i checked Apache error log but nothing there. actually i an new to this thing.. any idea please??
You need to name your file .htaccess (two c's) and put it in the root folder of your website to perform the rewrite you require.
RewriteEngine on
RewriteRule ^Home/ home.php [L,NC,QSA]
RewriteRule ^Home home.php [L,NC,QSA]
精彩评论