How to Change the Appearance of my Permalinks
This page refers to an older version of b2evolution.
The default Permalink in b2evolution look something like:
You can change this behavior to something cleaner by going to the backoffice under the Blog Settings > URLs tab. There you can choose different link formats. For example:
On the Collection URL settings you can also set different "Permalink type" options which determine whether your links are referenced by their database ID or by the title.
Here’s how to get rid of index.php and make your urls look more like this:<br />
After you’ve set up your webserver by following one of the instructions below, go to your blog settings > URLs and select "Default blog on index.php" for example.
Most probably you’re using the Apache webserver, so try editing the
.htaccess file at the root of your site and add the following lines (this requires mod_rewrite to be enabled):
If you’re using the lighttpd webserver instead, a little bit more work is required.
As of 2009-02-03, the author of this article uses lighttpd 1.4.13 on Debian Etch.
You need mod_magnet, so install it with apt-get or aptitude (the package is named lighttpd-mod-magnet) and enable the module as described here.
Then save the following
.lua script somewhere on your server and modify the variable "prefix" (look for it after the "Main script" comment), if needed:
This script only works properly if your doc root does not end with a slash.
Add the following line to your configuration file, modifying the path to point to the Lua script you just saved:
magnet.attract-physical-path-to = ( "/var/www/b2evo_rewrite.lua" )
Now restart your webserver and pray that you now can use clean URLs. ;-)
Open your nginx.conf or virtual.conf file, it should look something like below. Take note to replace the root path with the path to your installation. ‘'’Don’t move”’ "locations" around, they need to stay on their places, it’s important!
Your fastcgi.inc file should look something like this. (please refer to the nginx documentation to setup your fastcgi spawned processes and port binding)
Restart your web server and you should now have clean urls in the form of (or something like that)
Note that this config also covers links like this. No changes needed
_ vs -
With b2evolution 2.0, underscores are changed into dashes/hyphens. The permalink would look like this:<br />
Created by • Last edit by on Nov 27, 2015
No feedback yet
Form is loading...