T
TDuncklee
Guest
Options FollowSymLinks or SymLinksIfOwnerMatch is off which implies that RewriteRule directive is forbidden
I've searched for hours and found many with this problem but none of the other solutions have helped.
I migrated a site from 8.6 to 11 and now I get the apache test page:
http://parentingspecialneeds.org/
however...
http://parentingspecialneeds.org/index.php works.
Here's the .htaccess:
Options +FollowSymlinks
RewriteEngine on
RewriteBase /
rewritecond %{http_host} ^www\.parentingspecialneeds\.org [nc]
rewriterule ^(.*)$ http://parentingspecialneeds.org/$1 [r=301,nc]
RewriteRule ^article/(.*)$ index.php?page=article&article=$1 [NC,L]
RewriteRule ^article&article=(.*)$ /article/$1 [NC,L,R=301]
RewriteRule ^bio/(.*)$ index.php?page=bio&author=$1 [NC,L]
RewriteRule ^bio&author=(.*)$ /bio/$1 [NC,L,R=301]
RewriteRule ^events/details/(.*)$ index.php?page=events&sub_page=event&event_id=$1 [NC,L]
RewriteRule ^events&sub_page=event&event_id=(.*)$ /events/details/$1 [NC,L,R=301]
RewriteRule ^events/(.*)$ index.php?page=events&sub_page=$1 [NC,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^/\.]+)/?$ index.php?page=$1 [NC,L]
Vhost.conf:
<Directory /var/www/vhosts/parentingspecialneeds.org/httpdocs>
AllowOverride All
Options ExecCGI FollowSymLinks SymLinksIfOwnerMatch
</Directory>
Thanks to anyone who can clue me in...
TD
I've searched for hours and found many with this problem but none of the other solutions have helped.
I migrated a site from 8.6 to 11 and now I get the apache test page:
http://parentingspecialneeds.org/
however...
http://parentingspecialneeds.org/index.php works.
Here's the .htaccess:
Options +FollowSymlinks
RewriteEngine on
RewriteBase /
rewritecond %{http_host} ^www\.parentingspecialneeds\.org [nc]
rewriterule ^(.*)$ http://parentingspecialneeds.org/$1 [r=301,nc]
RewriteRule ^article/(.*)$ index.php?page=article&article=$1 [NC,L]
RewriteRule ^article&article=(.*)$ /article/$1 [NC,L,R=301]
RewriteRule ^bio/(.*)$ index.php?page=bio&author=$1 [NC,L]
RewriteRule ^bio&author=(.*)$ /bio/$1 [NC,L,R=301]
RewriteRule ^events/details/(.*)$ index.php?page=events&sub_page=event&event_id=$1 [NC,L]
RewriteRule ^events&sub_page=event&event_id=(.*)$ /events/details/$1 [NC,L,R=301]
RewriteRule ^events/(.*)$ index.php?page=events&sub_page=$1 [NC,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^/\.]+)/?$ index.php?page=$1 [NC,L]
Vhost.conf:
<Directory /var/www/vhosts/parentingspecialneeds.org/httpdocs>
AllowOverride All
Options ExecCGI FollowSymLinks SymLinksIfOwnerMatch
</Directory>
Thanks to anyone who can clue me in...
TD