Click here to Skip to main content
15,868,164 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi guys,

I want to change some md_reqrite rules for a website but can't get around it. I already got a working rule to send GET parameters seperated by slashes:

my-domain.tld/en/about which becomes my-domain.tld/index.php?langauge=en&page=about

But what I want now is to change the the URL now that, when no page is defined, mod_rewrite uses a default setting:

my-domain.tld/en/ this should become: my-domain.tld/en/home


Also, if possible, it would be great to add the langauge as well, when it is not defined. I.e.:

my-domain.tld becomes my-domain.tld/en/home

Any advise how to do this?
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900