Mod_rewrite module over multiple domains.

Topics: Customizing Orchard, Localization, Troubleshooting
Jul 8, 2011 at 5:43 AM

Hi, hope anyone can help me for the following.

we would like to localize over multiple domains as follows:
domain1.com
domain2.com
domain3.com

original url: domain1.com/En-en/page and domain1.com/TH-th/page should be accessed through
domain1.com/page for the /En-en/ page and domain2.com/page for the /TH-th/ page.

Besides this the pages will be created in orchard cms with page names as inputted by the user.
however several pages are based on parameters and need to be re-written as follows:

system url: domain.com/En-en/filename.extension&para1&para2&para 3 etc.
rewrite to
domain.com/filename/para1/para2/para 3 etc. These also need to be localized over the multiple domains.

I hope the above is all clear and hope someone can help me with this, either by a plugin or custom htaccess rewrite file.

 

thank you

 

giliam

Coordinator
Jul 8, 2011 at 4:58 PM

The Rewrite Rules module on the gallery can do it. http://orchardproject.net/gallery/List/Modules/Orchard.Module.Contrib.RewriteRules

Jul 11, 2011 at 3:39 AM

tnx, will have it a try with that module.