HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   General (http://www.howtoforge.com/forums/forumdisplay.php?f=25)
-   -   Problem with mod_rewrite... it's urgent (http://www.howtoforge.com/forums/showthread.php?t=60327)

bobsona 25th January 2013 15:54

Problem with mod_rewrite... it's urgent
 
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... :)

Croydon 26th January 2013 20:15

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

falko 28th January 2013 14:13

http://www.anilcetin.com/convert-apa...cess-to-nginx/
http://winginx.com/htaccess


All times are GMT +2. The time now is 12:04.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.