Hello,
I moved my website from cPanel server with Apache to IspConfig3 server with nginx.
My problem is that these current lines for mod_rewrite don't work in nginx...
Code:
RewriteEngine on
RewriteRule ^blog/(.*)/?$ /blogview.php?id=$1
RewriteRule ^blog/category/(.*)/?$ /blog_category.php?id=$1
Options -Indexes
Posts: 290
Thanks: 12
Thanked 100 Times in 58 Posts
nginx is not capable of using .htaccess files.
You have to specify nginx-specific rewrite rules inside the nginx directives of the website.
Maybe do some searching for "convert htaccess to nginx".
Recent comments
18 hours 37 min ago
18 hours 42 min ago
23 hours 40 min ago
1 day 6 hours ago
1 day 7 hours ago
1 day 8 hours ago
1 day 12 hours ago
1 day 19 hours ago
1 day 23 hours ago
2 days 52 min ago