Reputation: 3285
I will try to be as clear as possible: the htaccess file is located in
http://localhost:8080/trevision/.htaccess
below is whats included in htacesss
RewriteEngine On
RewriteRule ^search/$ /searchPage.php
essentially what this is trying to do redefine the default page on the search folder from index to searchPage.php the searchPage is found in
http://localhost:8080/trevision/search/searchPage.php
I have already checked httpd.conf and its set to AllowOverride All
everwhere
Any help would be appreciated.
For any clarification, let me know.
Upvotes: 2
Views: 247
Reputation: 143946
Try changing your rule's target to:
RewriteEngine On
RewriteRule ^search/$ search/searchPage.php [L]
Since the htaccess file is in /trevision/
, that's where all relative paths will start from. When someone goes to /trevision/search/
the rule will match and get rewritten to /trevision/search/searchPage.php
.
Alternatively, you can try adding in the htaccess file in the search
folder:
DirectoryIndex searchPage.php
Upvotes: 2