JavaDziner
02-18-2010, 12:22 PM
I posted a topic a few days ago in another section of the forums...and though I did receive a post in reply to the problem I was having, it wasn't the answer, and the member didn't provide any additional help thereafter.
I am trying to accomplish 2 things, both requiring the use of mod_rewrite. It is installed on my server. I have no experience using mod_rewrite, but have started reading an online tutorial/guide, so I am clearly no expert on it.
What I want to do is this -
1) forward requests for mysitename.com to www.mysitename.com
2) ensure that if a request for www.mysitename.com/Customers/ comes in, that the 'c' in 'Customers' is uppercase, and not lowercase.
I tried the following in an attempt to solve issue #1 -
RewriteCond %{HTTP_HOST} ^mysitename\.com [NC]
RewriteRule ^(.*)$ http://www.mysitename.com$1 [L,R=301]
I typed in mysitname.com in IE - and it worked correctly (http://www.mysitename.com/), but in Firefox it adds an additional trailing slash to the end of the address, like this - http://www.mysitename.com//
I can't understand why Firefox is doing that - and in the RewriteRule I did remove the slash from the site address.
Can someone please provide me with some possible solutions? I am really struggling here, and have nowhere else to go...
I am trying to accomplish 2 things, both requiring the use of mod_rewrite. It is installed on my server. I have no experience using mod_rewrite, but have started reading an online tutorial/guide, so I am clearly no expert on it.
What I want to do is this -
1) forward requests for mysitename.com to www.mysitename.com
2) ensure that if a request for www.mysitename.com/Customers/ comes in, that the 'c' in 'Customers' is uppercase, and not lowercase.
I tried the following in an attempt to solve issue #1 -
RewriteCond %{HTTP_HOST} ^mysitename\.com [NC]
RewriteRule ^(.*)$ http://www.mysitename.com$1 [L,R=301]
I typed in mysitname.com in IE - and it worked correctly (http://www.mysitename.com/), but in Firefox it adds an additional trailing slash to the end of the address, like this - http://www.mysitename.com//
I can't understand why Firefox is doing that - and in the RewriteRule I did remove the slash from the site address.
Can someone please provide me with some possible solutions? I am really struggling here, and have nowhere else to go...
