Apache Server configuration support - Rewrite Problems

This is Interesting: Free IT Magazines  
Home > Archive > Apache Server configuration support > May 2006 > Rewrite Problems





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Rewrite Problems
cliff

2006-05-24, 8:45 am

Here are my rewrite rules that I'm using.

RewriteEngine on
RewriteLog "/var/log/apache2/rewrite_log"
RewriteLogLevel 9
#This rule is for the index file to redirect to a seperate folder
RewriteRule ^/$ http://www.domainname.net/domainname$3 [R,L]
#The next two rules are for customer personal pages
RewriteRule ^/~(([a-z])[a-z0-9\.\-\_]+)(.*) http://www.domainname.net/$2/$1/web$3 [L]
RewriteRule ^/(([a-z])[a-z0-9\.\-\_]+)(.*) http://www.domainname.net/$2/$1/web$3 [L]


Here is my problem. Everything works perfectly until I have a customers personal webpage that the username uses a "." in it (ie. otis.spunkmire) I've looked at the logs and it only find the name before the period. In this case it would look just for "otis". I've used the same rule on different site except the other sites were not using the web folder on the end of the rule. Any help would be appreciated.

Thanks
cliff

2006-05-24, 9:19 am

I found the solution. I was loading the same configuration on a test IP address which was erroring things on the main configuration. It must have been the 1d10t error!..:D

quote:
Originally posted by cliff
Here are my rewrite rules that I'm using.

RewriteEngine on
RewriteLog "/var/log/apache2/rewrite_log"
RewriteLogLevel 9
#This rule is for the index file to redirect to a seperate folder
RewriteRule ^/$ http://www.domainname.net/domainname$3 [R,L]
#The next two rules are for customer personal pages
RewriteRule ^/~(([a-z])[a-z0-9\.\-\_]+)(.*) http://www.domainname.net/$2/$1/web$3 [L]
RewriteRule ^/(([a-z])[a-z0-9\.\-\_]+)(.*) http://www.domainname.net/$2/$1/web$3 [L]


Here is my problem. Everything works perfectly until I have a customers personal webpage that the username uses a "." in it (ie. otis.spunkmire) I've looked at the logs and it only find the name before the period. In this case it would look just for "otis". I've used the same rule on different site except the other sites were not using the web folder on the end of the rule. Any help would be appreciated.

Thanks

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2009 webservertalk.com