troubleshooting Question

Mod rewrite

Avatar of kennedypd1
kennedypd1 asked on
Apache Web ServerRegular ExpressionsWeb ServersPHP
3 Comments1 Solution164 ViewsLast Modified:
HI

I am just starting out using this and thought I had my head around it so was just trying to do the most basic task but not working and I dont understand why.

.htaccess

RewriteEngine On    # Turn on the rewriting engine
RewriteRule ^items-starting-with-a/$   browse_categories.php?search_string=A    [NC,L]    # Handle requests for "A"

URL
http://domain.com/items-starting-with-a/

Server Error
The requested URL /var/users/userid/domain.com/htdocs/browse_categories.php was not found on this server.

Checked
manually type in domain.com/browse_categories.php and it delivers the page fine as does domain.com/browse_categories.php?search_string=A

Anyone got any ideas where I am heading wrong here
Any help appreciated
Paul
ASKER CERTIFIED SOLUTION
Join our community to see this answer!
Unlock 1 Answer and 3 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 3 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros