Moving a WP VS: Directory index forbidden by Options directive
-
A friend of mine is making a new website to replace the old one. He has created a WordPress site in a subdomain www2 of the main working one (non WP)
After he finished and tested online he followed WP instructions on how to move a WP site between same server directories. http://codex.wordpress.org/Moving_WordPress Then he copied new public_html content to the old first level public_html dir.
He got an error 403 Forbidden.
Error log: Directory index forbidden by Options directive
Sandbox dir www2 directives are:
Options -Indexes +SymLinksifOwnerMatch +ExecCGI
allow from all
AllowOverride All
Options=ExecCGI,Includes,IncludesNOEXEC,Indexes,MultiViews,SymLinksIfOwnerMatch
AddHandler fcgid-script .php
AddHandler fcgid-script .php5
FCGIWrapper /home/…/domains/www2….com/fcgi-bin/php5.fcgi .php
FCGIWrapper /home/…/domains/www2….com.uy/fcgi-bin/php5.fcgi .php5
AddType application/x-httpd-php .php
and www directives are:Options -Indexes IncludesNOEXEC SymLinksifOwnerMatch +ExecCGI
allow from all
AllowOverride All
Options=ExecCGI,Includes,IncludesNOEXEC,Indexes,MultiViews,SymLinksIfOwnerMatch
AddHandler fcgid-script .php
AddHandler fcgid-script .php5
FCGIWrapper /home/…/fcgi-bin/php5.fcgi .php
FCGIWrapper /home/…./fcgi-bin/php5.fcgi .php5
AddType application/x-httpd-php .php
.htaccess is WP’s default# BEGIN WordPress
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]# END WordPress
Directory index is forbidden in both domain and subdomain dirs.
I cannot realize why the site www2… works good in browsers but there’s a 403 error when browsing www after copied www2 content to www dir.There are some active plugins like WooCommerce, Contact Bank Lite Edition
- The topic ‘Moving a WP VS: Directory index forbidden by Options directive’ is closed to new replies.