Hey,
I hope you don't mind me asking a probably simple question: I changed my webserver from apache to nginx. I migrated my rewrite rules, except one, successfully to nginx's config. I've used this rule in my .htaccess to add a '/' at the end of every url (e.g. www.example.com/news -> www.example.com/news/) pointing to a page:
[code]
'RewriteCond %{REQUEST_URI} ^/[^\.]+[^/]$' and
'RewriteRule ^(.*)$ http://%{HTTP_HOST}/$1/ [R=301,L]'
[/code]
Now I tried to do that with nginx but it is not working very well. When using the main url www.example.org, the rule adds '//' and the site gets in a loop.
[code]
rewrite ^/([^/]*)\/$ /index.php?p=$1 last;
if (!-f $request_filename) {
rewrite ^/(.*)$ h**p://$host/$1/ last; <- http changed to prevent hotlinking
}
[/code]
It would be great if somebody could help me. Is there a problem with double content for search indexes (e.g. Google)?
Thanks in advance.
PS: I am a bit confused that I am the first poster in this section. Am I allowed to post in here?