mod_rewrite - rewrite a URL that is already rewritten

Discussion in 'Apache' started by wickyd, Jun 21, 2010.

  1. #1
    Dear forum members

    I am using Joomla for this particular project. To achieve certain functionality, I am using Mighty Extensions components.

    Their components give me the following URL:

    http://www.example.com/en/username
    Code (markup):
    In other words: domain/language/registered user.

    I have been told that their components already use mod_rewrite to achieve that URL.

    What we want is the URL to look like this:
    http://username.en.example.com
    Code (markup):
    In other words: username.language.domain

    So, my question is: Is it possible for mod_rewrite to rewrite a URL that it has already rewritten?

    If so, please let me know how it is possible.

    Thank you.

    Kind regards
    wickyd
     
    wickyd, Jun 21, 2010 IP