Alright, what i want to do is rewrite urls on one of my domains out of few.
For example i have 1stdomain.com and 2nddomain.com.
I want to rewrite urls only for 2nddomain.com and rewrites not to affect any other domains.
My kloxo version is: 6.5.0.f-2014091101
Until now i have tried modifying /home/nginx/conf/domains/2nddomain.com.conf but once i run fixweb and restart nginx, my changes are gone...
I want to do only one simple rewrite for now which for apache would look like this:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([A-Za-z0-9-]+)/?$ file.php?path=$1 [QSA,L]
End url should look like:
www.2nddomain.com/some-path-goes-here/It should be available for: http, https, www and non-www domain.
Please let me know where to put and what.
Offtopic:
I have noticed some strange behavior on default nginx installation which is that mydomain.com/any-path/any-depth/ leads to index file which isn't expected to happen, this can produce issues for some users who are duplicate-content aware. (this isn't good for SEO, not good at all).