• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

URL Rewrite

techflyer

New Pleskian
Latest Plex installed on a fresh machine. Have tried both Ubuntu 12.04 and 14.04 and cannot seem to have my website work correctly regarding URL rewrites. Its enabled in apache and have searched forums and google looking for info.

Any help would be greatly appreciated
 
Are you sure, that you switched off nginx for the domain ( because nginx doesn't care about htaccess - rewrites )? If you still would like to profit from using nginx on your server, you might add your rewrites in the vhosts - conf over the Plesk Panel very easily in your website - settings for the specific domain. A specific nginx rewrite rule would look like this:
Code:
location ~ /$ {
     index index.html index.htm index.php index.cgi index.xhtml index.shtml index.pl;
     try_files $uri $uri/ /index.php?$args;
 }
At the bottom of the website setting in Plesk you will find the option to put in your own stuff and Plesk will check, if your settings are correct before it inserts your settings into the domain-specific vhosts.conf.

A quite good htaccess to nginx converter is located here: htaccess to nginx converter
... but keep in mind to check the nginx output, because the converter just deals with common htaccess basics. The output can have mutiple "locations" defined, which you have to convert into ONE, because you cant' have more than one defined in your specific domain nginx settings.
If you prefer another converter, you might search with google with the words "htaccess nginx rewrite converter" to get quite a lot of suggestions and hints.

You find a wiki to learn some nginx rewrites conditions here: Nginx Pitfalls


Another solution to get rid of the issue that nginx isn't dealing with htaccess - rewrites, is to turn off nginx completly for that domain. You can do this as well over Plesk in your website settings for the specific domain.
 
Back
Top