php - Wild Card Subdomain rewrite rules -
I have a codeigner application where I want to use the wildcard subdomain, all setup on the server and also allow Gives, please find below what I am trying to achieve:
URL: will test.domain.com execute: domain.com/user/profile/testing
I do not want redirection, but I want to do it through the rules of rewriting, ie it's index.php? Will call like / user / profile / testing and that user will call the controller function.
Hope that I explained it completely. / P>
Please
Thank you.
What this is probably what you are looking for (you have to use it for the use of https) :
RewriteCond% {HTTP_HOST} ^ (. +) \\ on RewriteEngine. Domain \ .com $ RewriteRule ^ (. *) $ Http://domain.com/user/profile/%1/$1 [L, QSA] Please note that if your You can always access the actual server configuration and use it instead of .htac. Sass style files you should always like that option. . Files of the Htaccess style are notorious error prone, complicate things, it is difficult to debug and slow down the server significantly, the above code requires minor changes in that case.
Comments
Post a Comment