troubleshooting Question

.htacces problem Only Numbers working

Avatar of killers376
killers376 asked on
PHPApache Web ServerWeb Servers
8 Comments1 Solution181 ViewsLast Modified:
I have a small problem with .htacess only numbers are working ..

if I change that the code given  in the code snippet to

RewriteRule ^([a-z]+) http://localhost/target/test.php?id=$1 [L]  itz not working

RewriteRule ^(.+) http://localhost/target/test.php?id=$1 [L] itz not working

RewriteRule ^(.*) http://localhost/target/test.php?id=$1 [L] itz not working

Only

RewriteRule ^([0-9]+) http://localhost/target/test.php?id=$1 [L] is working
http://localhost/target/1 is working ..

for everything elz im Getting 500 Internal error

I want http://localhost/target/xxx to http://localhost/target/test.php?id=xxx 


 
Options +FollowSymlinks
RewriteEngine on
RewriteBase /target/
 
 
 
RewriteRule ^([0-9]+) http://localhost/target/test.php?id=$1 [L]
 
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 8 Comments.
Join the Community
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 8 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