troubleshooting Question

URL rewriting help!!!

Avatar of Sudhindra A N
Sudhindra A NFlag for India asked on
Web DevelopmentApache Web Server
3 Comments1 Solution205 ViewsLast Modified:
Hello experts..
please help me in rewriting the url, say http://somesite.com/details.php?siteid=www.newsite.com to something like http://somesite.com/www.newsite.com

I created a rewrite rule but it is not working.  May be the problem with the regular expression i used...

my .htaccess file contents are given below...
---
RewriteEngine on

RewriteRule ^www\.[a-zA-Z0-9._-]+\.[a-zA-Z]{2,6}$ stats.php?site=$1
----
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 3 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 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