Dynadot

Wordpress pretty urls AND Lighttpd?

Spaceship Spaceship
Watch
Impact
2
Currently my permalinks look like this:

/index.php/%postname%/

Is there any way to rewrite them to be more seo friendly? Like this:

/%postname%/

Anybody knows how could I achieve that? I'm using Lighttpd instead of Apache at my VPS (in case of apache it would be a simple mod_rewrite). I've already tried dozens of googled lighttpd.conf tweaks but none of them worked at my blog. I'm really curious about this because many blogs are successfuly running on Lighttpd and seo friendly urls are no problem for them. My complete lighttpd.conf file is in the attachment if needed.

:(
 

Attachments

  • lighttpd.txt
    11.8 KB · Views: 11
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
Yes, there is. You should rewrite your .htaccess file to look like this:

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /yourbase/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /yourbase/index.php [L]
</IfModule>

# END WordPress

Oh sorry, I didn't see the lighttpd...
 
0
•••
no need for any of that....go into wordpress panel....options->permalinks->custom

add whatever custom permalink structure u want...:)

tony

this is what i use.....

/%postname%.html
 
0
•••
Thanks for help guys but you probably didn't notice that I'm using lighttpd webserver, so .htaccess file doesn't work as well as mod_rewrite...

Custom permalinks work also only with Apache.

Anyways I've found an easy workaround. I had to edit the config files for lighttpd at server root (/etc/lighttpd/lighttpd.conf)... ;)...
 
0
•••
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back