Forums

Login error due to www and non-www (8 posts)

  1. joietan
    Member
    Posted 9 months ago #

    Under the Basic Setting I try to set "click here to login to Google" and i encounter the following error :

    The page you have requested cannot be displayed. Another site was requesting access to your Google Account, but sent a malformed request. Please contact the site that you were trying to use when you received this message to inform them of the error. A detailed error message follows:

    The site "http://gspreschool.net" has not been registered.

    On my analytics. the site is registered as http://www.gspreschool.net

    any idea on how to fix this www and non-www thing?
    my wordpress address and site address URL both configured as http://www.gspreschool.net

  2. debajyoti
    Member
    Posted 9 months ago #

    It seems that your site resides both at http://gspreschool.net/ and http://www.gspreschool.net. You need to login to your cPanel and then from 'redirection' tab, you need to 301 Redirect your non www version to www version. Also check your .htaccess should have something like this:

    RewriteCond %{HTTP_HOST} ^gspreschool.net$
    # RewriteRule ^/?$ "http\:\/\/www\.gspreschool\.net" [R=301,L]

  3. joietan
    Member
    Posted 9 months ago #

    I got this error from my google analyticator plugin.

    When i set redirect from cpanel
    from : http://gspreschool.net/ and set wildcard redirect
    to : http://www.gspreschool.net/

    I am getting error
    Redirecting to http://www.gspreschool.net/ will cause a redirection loop because http://gspreschool.net/, which is located at /home/yunita/public_html/, is above http://www.gspreschool.net/, which is located at /home/yunita/public_html/.

    does that mean i should have put my files under public_html/www instead of public_html ?

  4. debajyoti
    Member
    Posted 9 months ago #

    Do not do wildcard redirect.
    Follow these steps in cPanel 'Redirects':

    1. Type - Permanent 301
    2. Select check button 'do not redirect www'
    3. put your domain name http://gspreschool.net/ [Write what I wrote in []brackets
    4. Redirects to [http://www.gspreschool.net] [write in the box there what I have written in[]]
    5. Then click on 'add'

    Now check

  5. debajyoti
    Member
    Posted 9 months ago #

    Select 'do not redirect www'
    in step 3 simply write gspreschool.net in the box there.
    in step 4 write complete url http://www.gspreschool.net
    Hope then your problem would be solved. I have checked your site, it still resides at both www and non-www.
    After you are done, Check on other browsers by typing http://gspreschool.net/ and it should automatically redirect to http://www.gspreschool.net. you can see it in your browser's address bar.

  6. joietan
    Member
    Posted 9 months ago #

    i did manage to set the redirection at cpanel.
    Does that mean i need to modify the .htaccess as well ?

  7. debajyoti
    Member
    Posted 9 months ago #

    No, it should automatically be changed. You can cross check downloading a copy of your .httaccess via FTP and find something similar below there as I told you earlier.

    RewriteCond %{HTTP_HOST} ^gspreschool.net$
    # RewriteRule ^/?$ "http\:\/\/www\.gspreschool\.net" [R=301,L]

  8. joietan
    Member
    Posted 9 months ago #

    ok got it working thank you

    In addition to redirection, I did do the following
    go to
    https://www.google.com/accounts/ManageDomains

    add the domain : http://www.gspreschool.net

    Once added, i click on Manage domain - http://www.gspreschool.net
    under Target URL path prefix:
    i entered : http://www.gspreschool.net/wp-admin
    then click save.

    that works for me

    Thank you debajyoti !!!

Reply

You must log in to post.

About this Topic