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
Post a Comment