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

 

Link to comment
Share on other sites

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

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

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