NamePros.Com (http://www.namepros.com/)
-   Web Hosting Discussion (http://www.namepros.com/web-hosting-discussion/)
-   -   Wordpress pretty urls AND Lighttpd? (http://www.namepros.com/web-hosting-discussion/468543-wordpress-pretty-urls-and-lighttpd.html)

risoknop 05-12-2008 03:47 PM

Wordpress pretty urls AND Lighttpd?
 
1 Attachment(s)
Currently my permalinks look like this:

Quote:
/index.php/%postname%/



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

Quote:
/%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.

:(

rafaelrls 05-13-2008 08:41 AM

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...

tonyfloyd 05-13-2008 09:22 AM

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

risoknop 05-13-2008 11:18 AM

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)... ;)...


All times are GMT -7. The time now is 03:09 AM.
Site Sponsors
Advertise your business at NamePros

Powered by: vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0