My non www page is not redirecting to www page

#527249
  • Resolved Coorg view
    Rank Math free

    As i am new to the rankmath plugin, i was working on my technical seo. while i couldn’t redirect my non www page to www page. As you mentioned in the documantation i applied instructed code on .htaccess . its is not working , i need rank well on seo, please help me to fix this

    Screen shot of .htaccess code of my website

Viewing 15 replies - 1 through 15 (of 43 total)
  • Hello

    Thank you for contacting the support, and sorry for any inconvenience that might have been caused due to that.

    The image you shared didn’t came across. Please use tools like imgbb.com to share the image.

    As I cannot see the .htaccess code, I believe you’ve used this article: https://rankmath.com/kb/how-to-redirect-non-www-urls-to-www/ and have added this code:

    RewriteEngine On
    RewriteCond %{HTTP_HOST} ^example.com [NC]
    RewriteRule ^(.*)$ http://www.example.com/$1 [L,R=301]

    Do remember to change “example.com” to your domain name.

    Please do share the .htaccess image using the tool so that we can guide you accordingly.

    Looking forward to helping you.

    Thank you

    I appreciate your fast response, here is the url of the picture as requested

    https://ibb.co/Ss93W4q

    Kindly assist me regarding this

    Hello,

    Thank you for providing additional information.

    Please delete the last 2 line and add this:

    RewriteEngine On
    RewriteCond %{HTTP_HOST} ^domain.com [NC]
    RewriteRule ^(.*)$ http://www.domain.com/$1 [L,R=301]

    Change domain.com with your website name.

    Hope that helps, and please do not hesitate to let us know if you need our assistance with anything else.

    Thank you.

    Thank you for your response, as you mentioned i have edited last two line on .htacess but still it is not redirected, i have attached the screenshot of the code of htaccess here, please find it and let me know if there is any error. Kindly help me to fix this issue

    Image link
    https://ibb.co/QX7fSJT

    Hello,

    Thank you for providing additional information.

    Please delete the last 3 line and add this:

    RewriteEngine On
    RewriteCond %{HTTP_HOST} ^coorgview.com [NC]
    RewriteRule ^(.*)$ http://www.coorgview.com/$1 [L,R=301]

    Hope that helps, and please do not hesitate to let us know if you need our assistance with anything else.

    Thank you.

    I have done as you said, deleted 3 line and pasted the above code. still not working. Find the image url below

    https://ibb.co/Hpc2cnX

    waiting for the update from the team, Awaiting your response

    Hello,

    Please delete everything that’s there and add this:

    # BEGIN WordPress
    
    RewriteEngine On
    RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    
    # END WordPress
    
    RewriteEngine On
    RewriteCond %{HTTP_HOST} ^coorgview.com [NC]
    RewriteRule ^(.*)$ http://www.coorgview.com/$1 [L,R=301]

    Hope that helps, and please do not hesitate to let us know if you need our assistance with anything else.

    Thank you.

    okay i will do that, but one question, there is some code has written by shortpixel. if i delete, will it effect on the shortpixel plugin, i have no idea what has written in that, please assist me

    Waiting for the update from the team, Awaiting your response. kindly assist me regarding this.

    Hello, is there anyone could help?

    Hello,

    I don’t see anything written by Shortpixel other than few comments.

    You can safely delete that or if you wish, you can just delete the last 3 lines and add the code below it.

    
    # BEGIN WordPress
    
    RewriteEngine On
    RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    
    # END WordPress
    
    RewriteEngine On
    RewriteCond %{HTTP_HOST} ^coorgview.com [NC]
    RewriteRule ^(.*)$ http://www.coorgview.com/$1 [L,R=301]
    

    Hope that helps, and please do not hesitate to let us know if you need our assistance with anything else.

    Thank you.

    I am doing as you have told since long time, nothing is reflecting on the system. as you said i have deleted all the codes from .htaccess and pasted the above code. still it is not working. find the screenshot below
    https://ibb.co/nP8wSyn

    Hello,

    We might need to take a closer look at the settings. Please edit the first post on this ticket and include your WordPress & FTP logins in the designated Sensitive Data section.

    Please do take a complete backup of your website before sharing the information with us.
    Sensitive Data Section

    It is completely secure and only our support staff has access to that section. If you want, you can use the below plugin to generate a temporary login URL to your website and share that with us instead:

    https://wordpress.org/plugins/temporary-login-without-password/

    You can use the above plugin in conjunction with the WP Security Audit Log to monitor what changes our staff might make on your website (if any):

    https://wordpress.org/plugins/wp-security-audit-log/

    We really look forward to helping you.

    okay no problem in sharing the details. As i am new to wordpress i have no idea about backing up the data, so backing up is mandatory or will it be a problem? I have worked this theme from the scratch so please confirm to process further.

Viewing 15 replies - 1 through 15 (of 43 total)

The ticket ‘My non www page is not redirecting to www page’ is closed to new replies.