lawrencejamerson
12-19-2009, 05:19 PM
Hi,
The site is www.planethypnosis.com and I put the files in a subfolder: planethypnosis. Now I cannot access the page directly.
I changed the .htaccess file and it now reads:
# Use PHP5 as default
AddHandler application/x-httpd-php5 .php
# Change yourdomain.com to be your main domain.
RewriteCond %{HTTP_HOST} ^(www.)?planethypnosis.com$
RewriteCond %{REQUEST_URI} !^/planethypnosis/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /planethypnosis/$1
RewriteCond %{HTTP_HOST} ^(www.)?planethypnosis.com$
RewriteRule ^(/)?$ planethypnosis/index.html [L]
Options All -Indexes
This was all taken from other posts and the knowledgebase. Yet when I try to access www.planethypnosis.com I get a 405 permission denied page. To get it to work I have to type http://www.planethypnosis.com/planethypnosis/index.html
All the files have permissions of 644 and the folders 755
I am pretty sure this worked before and I have changed nothing. I have read all the posts related to this and can't find a problem. Can anyone see what the problem is?
Thanks in advance for any advise.
The site is www.planethypnosis.com and I put the files in a subfolder: planethypnosis. Now I cannot access the page directly.
I changed the .htaccess file and it now reads:
# Use PHP5 as default
AddHandler application/x-httpd-php5 .php
# Change yourdomain.com to be your main domain.
RewriteCond %{HTTP_HOST} ^(www.)?planethypnosis.com$
RewriteCond %{REQUEST_URI} !^/planethypnosis/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /planethypnosis/$1
RewriteCond %{HTTP_HOST} ^(www.)?planethypnosis.com$
RewriteRule ^(/)?$ planethypnosis/index.html [L]
Options All -Indexes
This was all taken from other posts and the knowledgebase. Yet when I try to access www.planethypnosis.com I get a 405 permission denied page. To get it to work I have to type http://www.planethypnosis.com/planethypnosis/index.html
All the files have permissions of 644 and the folders 755
I am pretty sure this worked before and I have changed nothing. I have read all the posts related to this and can't find a problem. Can anyone see what the problem is?
Thanks in advance for any advise.