Rewrite subdomain .htaccess in apache -


i have laravel app , default laravel .htaccess file is

<ifmodule mod_rewrite.c>     <ifmodule mod_negotiation.c>         options -multiviews     </ifmodule>      rewriteengine on      # redirect trailing slashes if not folder...     rewritecond %{request_filename} !-d     rewriterule ^(.*)/$ /$1 [l,r=301]      # handle front controller...     rewritecond %{request_filename} !-d     rewritecond %{request_filename} !-f     rewriterule ^ index.php [l]      # handle authorization header     rewritecond %{http:authorization} .     rewriterule .* - [e=http_authorization:%{http:authorization}] </ifmodule> 

i want working url http://claar.dev/campsingle/xyz. access throug http://xyz.claar.dev/ throught mod rewrite.

note campsingle hardcoded , never changes.

(virtual hosts , /etc/hosts set)

thanks in advance


Comments

Popular posts from this blog

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -