Hello,
I want to redirect my subdomain to these URL
I tried to use this code
But it didn't work.
Does any know any solutions for this?
I want to redirect my subdomain to these URL
Code:
https://subfolder.example.com ---> https://example.com/subfolder/
https://subfolder.example.com/subfolder/ ---> https://example.com/subfolder/
https://subfolder.example.com/subfolder/my-wordpress-post-title/ ---> https://example.com/subfolder/my-wordpress-post-title/
Code:
RewriteCond %{HTTP_HOST} ^subfolder\.example.com\/(subfolder)?$
RewriteRule ^(.*)$ "https\:\/\/example\.com\/subfolder\/$1" [R=301,L]
But it didn't work.
Does any know any solutions for this?