php - htaccess not working in my local host -


i try clear possible: htaccess file located in

http://localhost:8080/trevision/.htaccess 

below whats included in htacesss

rewriteengine on  rewriterule ^search/$ /searchpage.php 

essentially trying redefine default page on search folder index searchpage.php searchpage found in

http://localhost:8080/trevision/search/searchpage.php 

i have checked httpd.conf , set allowoverride all everwhere

any appreciated.

for clarification, let me know.

try changing rule's target to:

rewriteengine on  rewriterule ^search/$ search/searchpage.php [l] 

since htaccess file in /trevision/, that's relative paths start from. when goes /trevision/search/ rule match , rewritten /trevision/search/searchpage.php.

alternatively, can try adding in htaccess file in search folder:

directoryindex searchpage.php 

Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -