php - htaccess redirect help please -


I had asked this question before and the answer did not seem to work necessarily - there was also an additional requirement.

Users are provided with unique URLs, that is: exampleurl.com/ AQ4ILB9
AQ4ILB9 is the referral code

  1. URL (or any referral url) to display the contents of index.php (htaccess redirect?)
  2. I would like the non-www and www version of exampleurl.com, in which example.com /index.php will be redirected to the top level in this format:
  3. I would like to have the example: $ _ GET ['_ url'] Referral ID (Yan : AQ4ILB9 ) in Index.php

    I can use to everything htaccess about above 3?

    Thank you!

      rewinding sign on revoked% {HTTP_HOST} ^ example.com rewriter (. *) Http: //www.example.com/$1 [R = 301, L] rewrite% {REQUEST_FILENAME}! -f rewrite command% {REQUEST_F ILENAME}! -d RectitRule ^ ([a-z0- 9] +) $ / index.fp? _ril = $ 1 [nc, l, ksa]   

    The first part is 301 W to add Redirect for.

    The second part will be rewritten that you want, but not for the existing files / directories.

Comments