This goes ABOVE your WordPress rules:
RewriteCond %{HTTP_HOST} ^site\.com [NC]
RewriteRule ^work/profile/(.*)$ http://$1.site.com/ [L,R=301]
Hi Ipstenu,
Thanks for your reply!
Following is the code on my htaccess file, Is that correct?
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /work/
RewriteCond %{HTTP_HOST} ^site\.com [NC]
RewriteRule ^work/profile/(.*)$ http://$1.site.com/ [L,R=301]
RewriteRule ^index\.php$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /work/index.php [L]
</IfModule>
# END WordPress
Thanks!
Pradeep.S
Hi @ipstenu,
Now I have setup wildcard for *.site.com and enabled Multisite.
But Now the subdomains are redirecting to wp-signup.php.
For Example
http://profile.site.com
redirects to
http://site.com/wp-signup.php?new=profile
Can you Please help?
Thanks!
Pradeep.S