• myshelterclub.com/sitedemo redirects to
    myshelterclub.com instead of sticking to
    myshelterclub.com/sitedemo

    sometimes myshelterclub.com/wp-admin also redirects to
    myshelterclub.com

    but when i use the www it stays at
    myshelterclub.com/sitedemo

    I would really appreciate the help! Thank you!

    • This topic was modified 8 years, 3 months ago by amgranad.
    • This topic was modified 8 years, 3 months ago by amgranad.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Hey @amgranad,

    I think I’m seeing your demo site at:

    https://www.myshelterclub.com/SiteDemo/

    . . . and it’s not redirecting to the main site.

    Is everything working on your end now?

    I hope that helps!

    Thread Starter amgranad

    (@amgranad)

    Hi @sewmyheadon !

    So if I have the full link, it goes through fine but if I remove the https://www it redirects to the wrong place. It’s supposed to go to the page with the terrier and not the girl with the bunny slippers.

    Hi @amgranad,

    Do you have more than one site setup, or are you using multisite? Sounds from the title of your post, like it’s multisite.

    If that’s the case, I’d check your hosting account to see if there are any redirects setup there, and I’d also look in .htaccess to make sure there’s not a rule doing this for you.

    Finally, I’d make sure you’ve got pretty permalinks enabled and rebuild permalinks for both sites, if you can get into the Admin.

    You might also try disabling plugins to make sure something isn’t interfering, if the above steps don’t work.

    Good luck!

    Eric

    Thread Starter amgranad

    (@amgranad)

    Hi @sewmyheadon!

    Yes, it’s a multisite.

    There are no redirects set in the cPanel.

    This is what’s in the .htaccess
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ – [L]

    # uploaded files
    RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [L]

    # add a trailing slash to /wp-admin
    RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]

    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ – [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
    RewriteRule . index.php [L]

    The permalink for the mail site is set to custom structure /%category%/%postname%/ and the subsite to day and name. Forgive me for my ignorance. I haven’t had to do it before but how do I rebuild the permalink for both sites?

    I tried disabling activated plugins one at a time with no results.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘subsite redirects to parents site without www’ is closed to new replies.