Jump to content

LightTPD + Jupiter Portal (SEO Friendly Links)


emcgfx

Recommended Posts

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

 

  • 1 year later...

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.