Answer the question
In order to leave comments, you need to log in
How to remove part from http host?
My registration address was siteurl.com/register/user_type. now you need to redirect to subdomain.siteurl.com/register.
I have this code:
<IfModule mod_rewrite.c>
RewriteCond %{REQUEST_URI} ^/register/user_type$
RewriteRule ^(.*)$ %{ENV:PROTO}://subdomain.%{HTTP_HOST}/register [R=301,L]
</IfModule>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question