emcgfx Posted April 14, 2009 Share Posted April 14, 2009 Hi guys, I am here to ask for help with LightTPD url rewrite, for Jupiter Portal urls (http://jupiterportal.org/) I need to make url for example; index.php?n=modules/forum >>> forum (for main forum page) index.php?n=modules/forum&a=2&d=1&o=2 >>> forum/2/1/2/ (for topic of the forum) index.php?n=modules/forum&a=3&d=1&o=2&q=204 >>> forum/3/1/2/204 (for forum post) index.php?n=modules/download >>> download index.php?n=modules/search >>> search index.php?n=modules/contact-us >>> contact index.php?n=modules/partners >>> partners Thank You ;-) Quote Link to comment https://forums.phpfreaks.com/topic/153990-lighttpd-jupiter-portal-seo-friendly-links/ Share on other sites More sharing options...
pornophobic Posted May 17, 2010 Share Posted May 17, 2010 I won't do this for you since this is an older post, but I can give you an example and a link explaining in more detail how to write rewrite rules for lighttpd. Here's two examples from me that should work, but I haven't tested these so there's no guarantee. url.rewrite = ( "^/forum/([^\?]+)(\?(.*))?" => "/index.php?n=modules/forum/$1" "^/forum/([^\?]+)(\?(.*))?" => "index.php?n=modules/forum&$1&$2&$3&$4" ) You can read more about rewrite rules here: http://redmine.lighttpd.net/wiki/1/Docs:ModRewrite Hope that helps someone. Quote Link to comment https://forums.phpfreaks.com/topic/153990-lighttpd-jupiter-portal-seo-friendly-links/#findComment-1059786 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.