My Current .htaccess File Like :
RewriteEngine on
#RewriteBase /
RewriteRule ^/?([-A-Za-z0-9/]+)/?$ index.php?q=$1 [QSA,L]
Now it does not support Ubuntu 14.04 ngnix server. I want a URL pattern like:
abc.com/user/1
How can I achieve that?
My Current .htaccess File Like :
RewriteEngine on
#RewriteBase /
RewriteRule ^/?([-A-Za-z0-9/]+)/?$ index.php?q=$1 [QSA,L]
Now it does not support Ubuntu 14.04 ngnix server. I want a URL pattern like:
abc.com/user/1
How can I achieve that?
Put this in your nginx config, nginx server not reading .htaccess files
location / { rewrite ^/?([-A-Za-z0-9/]+)/?$ /index.php?q=$1 break; }