[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [cobalt-users] How to stop rewrite URL on 404 error



>At 11:07 PM 25/09/01 +1000, you wrote:
>> >
>>> By placing these in an ssi echo, all I get is this...
>>>
>>> REDIRECT_REDIRECT_SCRIPT_URI: (none)
>>> REDIRECT_REDIRECT_SCRIPT_URL: (none)
>>> REDIRECT_REDIRECT_URL: (none)
>>> REDIRECT_REQUEST_URI: (none)
>>> REDIRECT_SCRIPT_URI: (none)
>>> REDIRECT_SCRIPT_URL: (none)
>>> REDIRECT_SERVER_ADMIN: (none)
>>> REQUEST_URI: /pagenotfound.shtml
>>> SCRIPT_URI: http://www.pdcweb.net/pagenotfound.shtml
>>> SCRIPT_URL: /pagenotfound.shtml
>>>
>>
>>you haven't got RewriteEngine off for the site have you ?
>>
>>Jim Carey
>
>How do I do that?
>
>I *appreciate* your help!
>- Bill

Rewrite is on for this site:

NameVirtualHost 216.87.216.158
<VirtualHost 216.87.216.158>
ServerName www.webyourbusiness.com
ServerAdmin admin
DocumentRoot /home/sites/site23/web
ServerAlias webyourbusiness.com
RewriteEngine on
RewriteCond %{HTTP_HOST}                !^216.87.216.158(:80)?$
RewriteCond %{HTTP_HOST}                !^www.webyourbusiness.com(:80)?$
RewriteRule ^/(.*)                      http://www.webyourbusiness.com/$1 [L,R]
RewriteOptions inherit
AliasMatch ^/~([^/]+)(/(.*))? /home/sites/site23/users/$1/web/$3
AliasMatch ^/users/([^/]+)(/(.*))? /home/sites/site23/users/$1/web/$3
AddHandler cgi-wrapper .cgi
AddHandler cgi-wrapper .pl
AddHandler server-parsed .shtml
AddType    text/html     .shtml
</VirtualHost>
-- 
http://www.webyourbusiness.com/
Providers of E-Commerce Software &
Web Design Consultancy and Services.
PH: (970)266-0195 FAX: (970)266-0158