alexel
Regular Member
- Feb 20, 2015
- 317
- 202
I've run my site on Apache for years, and since I've made the transition over to Nginx for speed preference, my htaccess rewrite rules have broken my site.
My site content is served dynamically based on the URL request - here's how my htaccess file looks for / traffic.
RewriteEngine on
RewriteRule ^([a-zA-Z0-9-z\-\_]+)/$ index.php?first_path=$1 [QSA]
This will pass any directory as a first_path param to index.php.
Reading through the Nginx documentation for url restructuring, I can't seem to figure out how to write my requirements.
Any ideas will help.
My site content is served dynamically based on the URL request - here's how my htaccess file looks for / traffic.
RewriteEngine on
RewriteRule ^([a-zA-Z0-9-z\-\_]+)/$ index.php?first_path=$1 [QSA]
This will pass any directory as a first_path param to index.php.
Reading through the Nginx documentation for url restructuring, I can't seem to figure out how to write my requirements.
Any ideas will help.