|
[Nginx] Enabling Search Engine Friendly URLs
|
|
06-22-2009, 02:03 PM
(This post was last modified: 06-22-2009 02:37 PM by frostschutz.)
Post: #1
|
|||
|
|||
|
If you are using Nginx instead of Apache web server, this tutorial explains how you can enable MyBB's Search Engine Friendly SEF URLs. Apache users do not need to read this tutorial.
This tutorial does not explain how to install and set up Nginx with PHP from scratch; it is expected that you already have everything up and running, and now all that's left are the SEF URLs. nginx.conf First you should make a backup copy of your nginx.conf, so you can go back to your working config in case anything goes wrong. In the server / location section, add these rewrite rules. Replace /MyBB/ with the directory you have MyBB installed. If your MyBB is installed in a top level domain, replace it with /, if it's in /forum replace it with /forum/ and so on. Please note that every rewrite statement goes in a single line even if it wraps in your browser here. Code: location / {Restart Nginx so the changes can take effect. MyBB settings In Admin CP, go to 'Configuration' -> 'Server and Optimization options' and set 'Enable search engine friendly URLs?' to 'Enabled'. (The auto detect option will not work with Nginx.) Go back into your forum and test if the MyBB SEF URLs work. Troubleshooting
|
|||
|
01-09-2010, 04:55 PM
(This post was last modified: 01-09-2010 04:58 PM by FBI.)
Post: #2
|
|||
|
|||
|
RE: [Nginx] Enabling Search Engine Friendly URLs
I'll bookmarks Frost.
Thanks.. It would be nice, if your Google SEO Mod has ability to switch between Nginx and Apache Rewrite. Or include it this totorial file into ![]() also this one http://community.mybboard.net/thread-51759.html was SMF & PunBB Fans Enjoy exciting MyBB ![]() Big MyBB powered forum is growing fast! Click it |
|||
|
01-09-2010, 05:06 PM
Post: #3
|
|||
|
|||
|
RE: [Nginx] Enabling Search Engine Friendly URLs
Google SEO already includes example rewrite rules for lighttpd and nginx, it's just not officially supported or recommended. If you have problems with it or if you change to custom URL scheme in the Google SEO settings, you have to adapt the example rewrite rules by yourself, I don't have the time to do this for you. Sorry if this sounds harsh, but I'm spending more than enough time supporting this plugin as it is...
|
|||
|
01-09-2010, 10:50 PM
Post: #4
|
|||
|
|||
|
RE: [Nginx] Enabling Search Engine Friendly URLs
I mean, not applied on your mod. I know How hard the code is
![]() But, only information that your tips apply on Default MyBB SEO Friendly URL Thanks was SMF & PunBB Fans Enjoy exciting MyBB ![]() Big MyBB powered forum is growing fast! Click it |
|||
|
01-10-2010, 03:49 AM
Post: #5
|
|||
|
|||
|
RE: [Nginx] Enabling Search Engine Friendly URLs
You mean like this?
![]() (06-22-2009 02:03 PM)frostschutz Wrote: this tutorial explains how you can enable MyBB's Search Engine Friendly SEF URLs. You can do both, MyBB SEF URLs, or Google SEO URLs, or something entirely different... once you know how to do rewrites with lighttpd/nginx you can do rewrites for pretty much anything, the concept is the same, the syntax slightly different from .htaccess. |
|||
|
01-11-2010, 02:14 PM
Post: #6
|
|||
|
|||
|
RE: [Nginx] Enabling Search Engine Friendly URLs
Thank you for this tutorial.
|
|||
|
« Next Oldest | Next Newest »
|
Search
Member List
Calendar
Help






