R
rodziewicz1
My website is available at http://domain.com with a Google PR of 3 and
at http://www.domain.com with a PR of 5. Since I wanted to consolidate
PR, I decided to redirect everything to the www domain using
mod_rewrite. My host is very helpful and had previously set-up the
following for me:
1) Visitor types in www.domain.com/nosuchpage and server sends visitor
to custom 404 error page. Visitor types in www.domain.com/realpage and
server sends visitor to realpage.html if it exists.
2) My host then set it up so that additionally http://domain.com
redirected correctly to www.domain.com. Both 1) and 2) worked just
fine until I discovered I couldn't upload or view my pages remotely
with FP2000.
Turns out the new .htaccess file had overwritten the FP extensions and
I was advised to "repair" these from within the hsphere control
panel, which I did. Upload was now no problem, but 1) and 2) had
stopped working!
Host sent me code for the .htaccess file, which I uploaded via ftp
directly to the root of the website and yes, I had to again repair FP
because I had no upload and yes, this repair wiped the .htaccess file.
Reluctantly I had to take the decision to put everything back to its
initial stage (with the duplicate domain problem) and host told me
which bit of the .htaccess file to delete and to upload. 1) works fine
now but of course I don't have 2).
The .htaccess file which works for both 1) and 2) and overwrites the
extensions is as follows:
# -FrontPage-
IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*
<Limit GET POST>
order deny,allow
deny from all
allow from all
</Limit>
<Limit PUT DELETE>
order deny,allow
deny from all
</Limit>
AuthName mydomain.com
AuthUserFile
/hsphere/local/home/wimbledo/domain.com/_vti_pvt/service.pwd
AuthGroupFile
/hsphere/local/home/wimbledo/domain.com/_vti_pvt/service.grp
ErrorDocument 404 /404.php
RewriteEngine on
RewriteCond %{HTTP_HOST} ^xxxx\.com [NC]
RewriteRule ^(.*)$ http://www.xxxx.com/$1 [L,R=301]
The .htaccess file which works fine for only 1) above and which does
not overwrite the FP extensions is the above with everything deleted
after "ErrorDocument 404 /404.php". So surely it is the bit which
is supposed to solve domain redirection which is causing the wiping of
the FP extensions.
Is there a fix for this?
at http://www.domain.com with a PR of 5. Since I wanted to consolidate
PR, I decided to redirect everything to the www domain using
mod_rewrite. My host is very helpful and had previously set-up the
following for me:
1) Visitor types in www.domain.com/nosuchpage and server sends visitor
to custom 404 error page. Visitor types in www.domain.com/realpage and
server sends visitor to realpage.html if it exists.
2) My host then set it up so that additionally http://domain.com
redirected correctly to www.domain.com. Both 1) and 2) worked just
fine until I discovered I couldn't upload or view my pages remotely
with FP2000.
Turns out the new .htaccess file had overwritten the FP extensions and
I was advised to "repair" these from within the hsphere control
panel, which I did. Upload was now no problem, but 1) and 2) had
stopped working!
Host sent me code for the .htaccess file, which I uploaded via ftp
directly to the root of the website and yes, I had to again repair FP
because I had no upload and yes, this repair wiped the .htaccess file.
Reluctantly I had to take the decision to put everything back to its
initial stage (with the duplicate domain problem) and host told me
which bit of the .htaccess file to delete and to upload. 1) works fine
now but of course I don't have 2).
The .htaccess file which works for both 1) and 2) and overwrites the
extensions is as follows:
# -FrontPage-
IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*
<Limit GET POST>
order deny,allow
deny from all
allow from all
</Limit>
<Limit PUT DELETE>
order deny,allow
deny from all
</Limit>
AuthName mydomain.com
AuthUserFile
/hsphere/local/home/wimbledo/domain.com/_vti_pvt/service.pwd
AuthGroupFile
/hsphere/local/home/wimbledo/domain.com/_vti_pvt/service.grp
ErrorDocument 404 /404.php
RewriteEngine on
RewriteCond %{HTTP_HOST} ^xxxx\.com [NC]
RewriteRule ^(.*)$ http://www.xxxx.com/$1 [L,R=301]
The .htaccess file which works fine for only 1) above and which does
not overwrite the FP extensions is the above with everything deleted
after "ErrorDocument 404 /404.php". So surely it is the bit which
is supposed to solve domain redirection which is causing the wiping of
the FP extensions.
Is there a fix for this?