View Single Post
  #6 (permalink)  
Old 01-15-2008, 11:27 PM
mib mib is offline
WebProWorld Member
 

Join Date: Apr 2004
Location: Melbourne, Australia
Posts: 36
mib RepRank 0
Default Re: .htaccess Help!!

Hello Wige,

Just read your post which appeared to me so professional and kind.

As I have similar problem regarding being newbie with .htaccess I would like to have your kind assistance as well.

As I understand to rename domain name for search engines I would need to write and rewrite them in .htacess extension or I need allow or disallow in robots file. Some domains have already been rewritten in .htaccess files but it seems not all.

My old domain or site was Christian Science Healing Method Restores Physical Mental Health and my new one is Christian Science Healing Method Restores Physical Mental Health

After clicking old domain I get some either NOT FOUND or the following message:

"Warning: Unknown(): open_basedir restriction in effect. File(/home/healing/public_html/christian/index.htm) is not within the allowed path(s): (/home/blitch/:/usr/lib/php:/usr/local/lib/php:/tmp) in Unknown on line 0

Warning: Unknown(/home/healing/public_html/christian/index.htm): failed to open stream: Operation not permitted in Unknown on line 0

Warning: Unknown(): open_basedir restriction in effect. File(/home/healing/public_html/christian/index.htm) is not within the allowed path(s): (/home/blitch/:/usr/lib/php:/usr/local/lib/php:/tmp) in Unknown on line 0

Warning: Unknown(/home/healing/public_html/christian/index.htm): failed to open stream: Operation not permitted in Unknown on line 0

Warning: (null)(): Failed opening '/home/healing/public_html/christian/index.htm' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in Unknown on line 0"

My .htaccess looks 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 Christian Science Healing Method Restores Physical Mental Health
AuthUserFile /home/blitch/public_html/_vti_pvt/service.pwd
AuthGroupFile /home/blitch/public_html/_vti_pvt/service.grp

#Content type for diverse files
AddCharset UTF-8 .php
AddCharset UTF-8 .html
AddCharset UTF-8 .htm
AddCharset UTF-8 .css

RewriteEngine On

RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /([^/]*/)*index\.html? [NC]
RewriteRule ^(([^/]*/)*)index\.html?$ http://www.christian-healing-prayer.net/$1 [R=301,L]

RewriteCond %{HTTP_HOST} ^christian-healing-prayer\.net [NC]
RewriteRule ^(.*)$ http://www.christian-healing-prayer.net/$1 [R=301,L]


As I've also changed the names of the articles files I would need to change them all on the Public server as well as they cannot be found.

Any way any tips regarding that matter would be greatly appreciated.

Thank you for your time and willingness to help.

So warmly, Michael.
Reply With Quote