• The APS Catalog has been deprecated and removed from all Plesk Obsidian versions.
    Applications already installed from the APS Catalog will continue working. However, Plesk will no longer provide support for APS applications.
  • Please be aware: with the Plesk Obsidian 18.0.78 release, the support for the ngx_pagespeed.so module will be deprecated and removed from the sw-nginx package.

mod_rewrite issues migrating from cpanel 403 errors

T

truedon

Guest
Hi,

I have recently move to use a parellels plesk setup (9.0.1) from using a cpanel installation and the rewrite rules I had are now not working. I get 403 forbidden errors when I turn my rewrites rules on using .htaccess and I find this in the log

Options FollowSymLinks or SymLinksIfOwnerMatch is off which implies that RewriteRule directive is forbidden:

After doing tonnes of googling and trying alot of stuff mentioned on here and other sites. I have not been able to get anywhere.

mod_rewrite is enabled and this is what I have in my .htaccess file can anyone tell me what to change to get this working?

Options +FollowSymLinks +SymLinksIfOwnerMatch
RewriteEngine On
RewriteBase /

#RewriteCond %{REQUEST_URI} !\.css$
#RewriteCond %{REQUEST_URI} !\.js$
#RewriteCond %{REQUEST_URI} !\.xml$
#RewriteCond %{REQUEST_URI} !\.rar$
#RewriteCond %{REQUEST_URI} !\.zip$
#RewriteCond %{REQUEST_URI} !\.png$
#RewriteCond %{REQUEST_URI} !\.jpg$
#RewriteCond %{REQUEST_URI} !\.gif$
#RewriteCond %{REQUEST_URI} !\.txt$

RewriteRule ^videos/([A-Za-z0-9-]+)/([0-9])$ /browse_cat.php?category=$1&page=$2 [L]
RewriteRule ^categories/$ /categories.php [L]
RewriteRule ^most-popular/$ /most-popular.php [L]
RewriteRule ^view/([A-Za-z0-9-]+)/([0-9]+)$ /view.php?gid=$2 [L]
RewriteRule ^rss/$ /rss.php [L]
 
Thanks for replying :)

I'm not sure, I'm a bit of a newb when it comes to this. I don't have root access is there anyway to check it or do I need my admin for this?
 
Back
Top