Redirection Issue

#40000
  • Resolved ck hsenag
    Rank Math free

    Hi there,

    Its been a disaster to me. Long time i am not able to redirect my website from www to non www.

    when ever i type only upayportal.com it opens to https:upayportal.com… BUT

    when i enter http://www.upayportal.com, the site doesnt open …. and i tried everything even to rewrite in htaccess but cant help myself.

    Please help me to redirect the www and non-www versions of URL to the same site.i.e https://upayportal.com

    Below is my .htaccess content#########
    ————————————————————————————————————

    # BEGIN WordPress
    # The directives (lines) between BEGIN WordPress and END WordPress are
    # dynamically generated, and should only be modified via WordPress filters.
    # Any changes to the directives between these markers will be overwritten.
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteCond %{HTTP_HOST} http://www.upayportal.com
    RewriteRule (.*) https://upayportal.com/$1 [R=301,L]
    RewriteBase /
    RewriteRule ^index\.php$ – [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    # END WordPress

    # Wordfence WAF
    <IfModule LiteSpeed>
    php_value auto_prepend_file ‘/home/upayportal/public_html/wordfence-waf.php’
    </IfModule>
    <IfModule lsapi_module>
    php_value auto_prepend_file ‘/home/upayportal/public_html/wordfence-waf.php’
    </IfModule>
    <Files “.user.ini”>
    <IfModule mod_authz_core.c>
    Require all denied
    </IfModule>
    <IfModule !mod_authz_core.c>
    Order deny,allow
    Deny from all
    </IfModule>
    </Files>

    # END Wordfence WAF

    # AMPFORWPLBROWSERCSTART Browser Caching
    <IfModule mod_expires.c>
    ExpiresActive On
    AddType application/vnd.ms-fontobject .eot
    AddType application/x-font-ttf .ttf
    AddType application/x-font-opentype .otf
    AddType application/x-font-woff .woff
    AddType image/svg+xml .svg
    ExpiresByType application/vnd.ms-fontobject “access 1 year”
    ExpiresByType application/x-font-ttf “access 1 year”
    ExpiresByType application/x-font-opentype “access 1 year”
    ExpiresByType application/x-font-woff “access 1 year”
    ExpiresByType image/svg+xml “access 1 year”
    ExpiresByType image/webp “access 1 year”
    ExpiresByType image/gif “access 1 year”
    ExpiresByType image/jpg “access 1 year”
    ExpiresByType image/jpeg “access 1 year”
    ExpiresByType image/png “access 1 year”
    ExpiresByType image/x-icon “access 1 year”
    ExpiresByType text/css “access 3 month”
    ExpiresByType text/javascript “access 3 month”
    ExpiresByType text/html “access 3 month”
    ExpiresByType application/javascript “access 3 month”
    ExpiresByType application/x-javascript “access 3 month”
    ExpiresByType application/xhtml-xml “access 3 month”
    ExpiresByType application/pdf “access 3 month”
    ExpiresByType application/x-shockwave-flash “access 3 month”
    ExpiresDefault “access 3 month”
    </IfModule>
    # END Caching AMPFORWPLBROWSERCEND
    —————————————————————————————————————–

Viewing 4 replies - 1 through 4 (of 4 total)
  • Michael Davis
    Rank Math free

    Hello,

    Thank you for contacting Rank Math today.

    I can suggest that you reach out to your host about this. They will be in a better position to help with the redirection.

    Looking forward to helping you. Thank you.

    ​​​​​​

    Sushodh G
    Rank Math free

    Hi,
    I am facing some problem with redirection. Somebody injected some malicious code which redirects to other website.
    How do I remove it?
    I would love to use rank math if the malicious code is removed.

    Please help me out.

    Thanks,
    Sushodh

    Sushodh G
    Rank Math free

    Sorry, I forget to mention the website http://www.bizprospex.com for which rank math has installed

    Todd
    Rank Math free

    We are extremely sorry that this happened. Please read here about the official apology statement and how we communicated to our users before the leak was available publicaly:

    https://www.facebook.com/groups/rankmathseopluginwordpress/permalink/576571766548487/?comment_id=576580039880993

    That being said, what you are facing now can be resolved easily, IF Rank Math is the reason. Keep Rank Math disabled and follow these steps:

    0. Take a complete backup of your site
    https://wordpress.org/support/article/wordpress-backups/

    1. Update all your plugins and themes to the latest version.

    1.1 Optionally, opt for an auto-update by following this tutorial:
    https://rankmath.com/kb/version-control/#auto-update

    2. Update WordPress to the latest version and reinstall it.

    3. Please enable the Rank Math plugin and if you have Rank Math’s redirection module active then re-check if all the redirections are correct here:
    https://i.rankmath.com/VoRdoK

    If not, then please delete the ones you do not recognize

    3.1 Please make sure there are no unauthorized users registered on your website.
    /wp-admin/users.php
    https://i.rankmath.com/lZ1I7Z

    3.2 Check the menu items and the links inside them and remove any unwanted links:
    https://i.rankmath.com/VRPtbB

    4. Install a malware scanner like Sucuri or WordFence and run a scan for checking if there are any suspicious files on your server. If you find any, remove them all.

    5. Follow these setup tutorials to confirm if the settings are correct:
    https://youtu.be/dTvZuMRzW4w

    and

    https://www.wpmediamastery.com/rank-math-seo/?utm_campaign=Rank+Math

    6. Optional: We would recommend using Cloudflare if not already

    7. If that doesn’t help, your site could be hacked due to one of the plugins listed here
    https://www.webarxsecurity.com/wordpress-vulnerability-news-march-2020/

    8. In that case, please ask your hosting to run a malware scanner and remove any unwanted files from the server. Change the password of all the users on your website.

    Change the salt keys on your website. Finally, follow these security measures:
    https://mythemeshop.com/blog/wordpress-security-tips/

    Please let us know how can we help you further. Again, we’re extremely sorry that this happened.

    We are here to help. Thank you.

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

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

The ticket ‘Redirection Issue’ is closed to new replies.