Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    This goes ABOVE your WordPress rules:

    RewriteCond %{HTTP_HOST} ^site\.com  [NC]
    RewriteRule ^work/profile/(.*)$ http://$1.site.com/ [L,R=301]
    Thread Starter aspradeep88

    (@aspradeep88)

    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

    Thread Starter aspradeep88

    (@aspradeep88)

    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

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘profile/username to username.site.com’ is closed to new replies.