Quantcast
Channel: Nginx Forum - How to...
Viewing all articles
Browse latest Browse all 4759

nginx rewrite with ISPConfig

$
0
0
I've searched for 1+ hour now.
I have a webserver, with ISPConfig 3 and using nginx.

It's a Joomla website, where it used .htaccess before, which afaik nginx doesn't support.

Therefor, SEF (mod_rewrite) is done with the following:

# Support Clean (aka Search Engine Friendly) URLs</tt>
location / {
try_files $uri $uri/ /index.php?q=$request_uri;
}

Now the tricky part.
Before with .htaccess, a rewrite was setup with:
domain.tld to www.domain.tld/path
The path is an menu alias in Joomla, and worked perfectly with .htaccess.

How can this be resolved with nginx?

If I use ISPConfig, I get 404 errors and the URL looks totally wrong.
So therefor, if possible, I'll like howto setup this in the nginx conf file.

Thanks,

Viewing all articles
Browse latest Browse all 4759

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>