Problem with mod_rewrite... it's urgent

Discussion in 'General' started by bobsona, Jan 25, 2013.

  1. bobsona

    bobsona New Member

    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
    Can anyone help me ?
    Sorry for my English... :)
     
  2. Croydon

    Croydon ISPConfig Developer ISPConfig Developer

    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".
     
  3. falko

    falko Super Moderator Howtoforge Staff

Share This Page