How to enable Drupal Clean URL with Nginx
2011-01-18 11:46
387 查看
Install Drupal with Nginx, default, you can’t enable the Clean URL
function, you have to edit nginx.conf file and add the URL rewrite
rules.
If Drupal install in the root directory,
if drupal in a subdirectory,
function, you have to edit nginx.conf file and add the URL rewrite
rules.
If Drupal install in the root directory,
if (!-e $request_filename) { rewrite ^/(.*)$ /index.php?q=$1 last; break; }
if drupal in a subdirectory,
if ($request_uri ~* ^.*/.*$) { rewrite ^/(/w*)/(.*)$ /$1/index.php?q=$2 last; break; }
相关文章推荐
- How to enable wire logging for a java HttpURLConnection traffic?
- How to get URL parameters with Javascript?
- How to Secure an nginx Server with Fail2Ban
- how to use UrlConnection to post/get request with basic authorization?
- How to Publish the Windows Explorer (Explorer.exe) with Specific Drives, Specific Folders, or URL
- Howto Enable and Use A2DP Sink on Ubuntu Linux with Bluez
- How To Set Up HTTP Authentication With Nginx On Ubuntu 12.10
- How to Enable Accounts with userAccountControl
- How To Install Wordpress with nginx on Ubuntu 12.04
- How to enable LDAP over SSL with a third-party certification authority
- How to install cacti With Nginx
- How to Install Laravel with an Nginx Web Server on Ubuntu 14.04(Composer,laravel,nginx)
- How to install Nginx, PHP, PHP-FPM and MySQL under Windows with Cygwin
- Xamarin.android + VS - notes how to enable debug with device
- How To Install and Configure Django with Postgres, Nginx, and Gunicorn
- [Drupal] How to change the admin url from /admin to /config in Drupal 6.x
- How to Install HTTP Git Server With Nginx on Ubuntu 16.04
- How to enable Nginx FancyIndex on Ubuntu
- How To Quickly Set Up Ubuntu 8.04 loaded with Erlang, Mochiweb and Nginx
- how to post URL with Image on facebook by ShareKit