anon wrote:
>> On Sat, 01 Jul 2006 22:12:31 GMT, anon@anon.invalid.net (anon) wrote:
>>
>>> I'm on a shared host where the internal addresses are all:
>>>
>>> http://xxx.xxx.xxx.xxx/~user/pagename.htm
>>>
>>> At some point, I will enable DNS so that my access is:
>>>
>>> http://www.mydomain.com/pagename.htm
>>>
>>> But for now, in order to do testing, I need to do so through the IP
>>> address.
>>>
>>> I was thinking the following would work, but it doesn't:
>>>
>>> RewriteCond %{REQUEST_URL} !^/~user/.*
>>> RewriteCond %{REQUEST_URL} ^/xxx.xxx.xxx.xxx/.*
>>> RewriteRule ^/xxx.xxx.xxx.xxx/(.*)$ ^/xxx.xxx.xxx.xxx/~user/$1
>>>
>>> I was thinking that the above would just gracefully be ignored once I
>>> enabled DNS.
>>>
>>> Does anybody see what I'm doing wrong?
>>>
>>> Thanks
>
Are you sure that REQUEST_URL is what you should be using? I don't find
that particular variable in my references.
Jim