• Resolved tourneytimenetwork

    (@tourneytimenetwork)


    Hi,

    I’m struggling with what I believe is a redirect automatically created by WordPress.

    My page: bellemaisonmortgages.com/local-mortgage-advice is automatically redirecting to my home page.

    It’s a 301 redirect, and appears to be WordPress that’s creating the redirect rather than any plug-in. I have RankMath installed but have deactivated this to test and still get the redirect.

    What could be causing this? I’ve tried looking in the htaccess file, but can’t see anything obvious in here, albeit I’ll admit that this is beyond my knowledge; I don’t know what I’m looking for in here.

    I’ve tried Googling and can’t find anyone that has experienced the exact same issue. Others have had similar issues but caused by plugins for example.

    Any help would be much appreciated!

    The page I need help with: [log in to see the link]

Viewing 15 replies - 1 through 15 (of 27 total)
  • Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    Do you have any redirection plugins installed? Do you, in fact, have a page with the slug local-mortgage-advice?

    Thread Starter tourneytimenetwork

    (@tourneytimenetwork)

    I do have a page using the slug local-mortgage-advice.

    And no redirect plugins other than RankMath. I’ve tried installing a few different plugins to try and fix the issue but none have helped and all have been deleted since.

    Thanks for your input.

    Dion

    (@diondesigns)

    The domain in the “help with” link is different than the domain you added in your initial post.

    I did some tests using curl -I, and all URLs in the “help with” domain do a 301 redirect to the other domain. That’s probably done at the server level. And it looks like the nginx configuration is broken in the other domain’s server because all URLs in that domain seem to redirect to themselves. (nginx has issues with WordPress because it doesn’t support .htaccess files.)

    Thread Starter tourneytimenetwork

    (@tourneytimenetwork)

    @diondesigns thanks for your reply. I accidentally used the wrong link in the “help with” link. This is a deliberate redirect configured in Google domains but is not the issue (appreciate I’ve confused the matter by linking this.)

    The issue is that https://www.bellemaisonmortgages.com/local-mortgage-advice redirects to https://www.bellemaisonmortgages.com/ and I can’t figure out what is causing this redirect.

    Thread Starter tourneytimenetwork

    (@tourneytimenetwork)

    Can anyone make any suggestions:

    The issue is that https://www.bellemaisonmortgages.com/local-mortgage-advice redirects to https://www.bellemaisonmortgages.com/ and I can’t figure out what is causing this redirect.

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    what plugins do you have installed?

    Thread Starter tourneytimenetwork

    (@tourneytimenetwork)

    @sterndata
    – Asset Cleanup
    – Autoptimise
    – Elementor – no redirect set up in “replace URL” tab within Elementor
    – Essential Addons
    – Fluent Forms
    – GDPR Cookie Consent
    – Inserts Headers and Footers
    – OMGF
    – RankMath SEO – none set up
    – RapidLoad
    – Shortcode in Menus
    – ShortPixel
    – SiteKit
    – SiteGround Central
    – SiteGround Security
    – Slugs Manager – none set up
    – Updraft
    – Wordfence Security
    – Wp Fastest Cash

    Thread Starter tourneytimenetwork

    (@tourneytimenetwork)

    I have even tried purchasing the Pro version of Slug Manager which is supposed to pick up any old redirects in the database, and it’s not found any.

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    What happens if you disable WP Fastest Cache and Autoptimize? (Just as a test)

    Thread Starter tourneytimenetwork

    (@tourneytimenetwork)

    @sterndata still redirects I’m afraid.

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    Please post your .htaccess file.

    Thread Starter tourneytimenetwork

    (@tourneytimenetwork)

    # BEGIN WpFastestCache
    # Modified Time: 07-02-22 20:38:46
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{HTTPS} =on
    RewriteCond %{HTTP_HOST} ^www.bellemaisonmortgages.com
    # Start WPFC Exclude
    # End WPFC Exclude
    # Start_WPFC_Exclude_Admin_Cookie
    RewriteCond %{HTTP:Cookie} !wordpress_logged_in_[^\=]+\[email protected]
    # End_WPFC_Exclude_Admin_Cookie
    RewriteCond %{HTTP_HOST} ^www.bellemaisonmortgages.com
    RewriteCond %{HTTP_USER_AGENT} !(facebookexternalhit|WP_FASTEST_CACHE_CSS_VALIDATOR|Twitterbot|LinkedInBot|WhatsApp|Mediatoolkitbot)
    RewriteCond %{HTTP_USER_AGENT} !(WP\sFastest\sCache\sPreload(\siPhone\sMobile)?\s*Bot)
    RewriteCond %{REQUEST_METHOD} !POST
    RewriteCond %{REQUEST_URI} !(\/){2}$
    RewriteCond %{REQUEST_URI} \/$
    RewriteCond %{QUERY_STRING} !.+
    RewriteCond %{HTTP:Cookie} !comment_author_
    RewriteCond %{HTTP:Cookie} !safirmobilswitcher=mobil
    RewriteCond %{HTTP:Profile} !^[a-z0-9\”]+ [NC]
    RewriteCond %{DOCUMENT_ROOT}/wp-content/cache/all/$1/index.html -f [or]
    RewriteCond /home/customer/www/bellemaisonmortgages.com/public_html/wp-content/cache/all/$1/index.html -f
    RewriteRule ^(.*) “/wp-content/cache/all/$1/index.html” [L]
    </IfModule>
    <FilesMatch “index\.(html|htm)$”>
    AddDefaultCharset UTF-8
    <ifModule mod_headers.c>
    FileETag None
    Header unset ETag
    Header set Cache-Control “max-age=0, no-cache, no-store, must-revalidate”
    Header set Pragma “no-cache”
    Header set Expires “Mon, 29 Oct 1923 20:30:00 GMT”
    </ifModule>
    </FilesMatch>
    # END WpFastestCache
    # BEGIN GzipWpFastestCache
    <IfModule mod_deflate.c>
    AddType x-font/woff .woff
    AddType x-font/ttf .ttf
    AddOutputFilterByType DEFLATE image/svg+xml
    AddOutputFilterByType DEFLATE text/plain
    AddOutputFilterByType DEFLATE text/html
    AddOutputFilterByType DEFLATE text/xml
    AddOutputFilterByType DEFLATE text/css
    AddOutputFilterByType DEFLATE text/javascript
    AddOutputFilterByType DEFLATE application/xml
    AddOutputFilterByType DEFLATE application/xhtml+xml
    AddOutputFilterByType DEFLATE application/rss+xml
    AddOutputFilterByType DEFLATE application/javascript
    AddOutputFilterByType DEFLATE application/x-javascript
    AddOutputFilterByType DEFLATE application/x-font-ttf
    AddOutputFilterByType DEFLATE x-font/ttf
    AddOutputFilterByType DEFLATE application/vnd.ms-fontobject
    AddOutputFilterByType DEFLATE font/opentype font/ttf font/eot font/otf
    </IfModule>
    # END GzipWpFastestCache
    # BEGIN LBCWpFastestCache
    <FilesMatch “\.(webm|ogg|mp4|ico|pdf|flv|avif|jpg|jpeg|png|gif|webp|js|css|swf|x-html|css|xml|js|woff|woff2|otf|ttf|svg|eot)(\.gz)?$”>
    <IfModule mod_expires.c>
    AddType application/font-woff2 .woff2
    AddType application/x-font-opentype .otf
    ExpiresActive On
    ExpiresDefault A0
    ExpiresByType video/webm A10368000
    ExpiresByType video/ogg A10368000
    ExpiresByType video/mp4 A10368000
    ExpiresByType image/avif A10368000
    ExpiresByType image/webp A10368000
    ExpiresByType image/gif A10368000
    ExpiresByType image/png A10368000
    ExpiresByType image/jpg A10368000
    ExpiresByType image/jpeg A10368000
    ExpiresByType image/ico A10368000
    ExpiresByType image/svg+xml A10368000
    ExpiresByType text/css A10368000
    ExpiresByType text/javascript A10368000
    ExpiresByType application/javascript A10368000
    ExpiresByType application/x-javascript A10368000
    ExpiresByType application/font-woff2 A10368000
    ExpiresByType application/x-font-opentype A10368000
    ExpiresByType application/x-font-truetype A10368000
    </IfModule>
    <IfModule mod_headers.c>
    Header set Expires “max-age=A10368000, public”
    Header unset ETag
    Header set Connection keep-alive
    FileETag None
    </IfModule>
    </FilesMatch>
    # END LBCWpFastestCache

    # SGS HSTS Header Service
    Header set Strict-Transport-Security “max-age=10886400; preload”
    # SGS HSTS Header Service END
    # HTTPS forced by SG-Optimizer
    <IfModule mod_rewrite.c>
    RewriteEngine On

    RewriteCond %{HTTP:X-Forwarded-Proto} !https
    RewriteCond %{HTTPS} off
    RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
    </IfModule>
    # END HTTPS
    # SGS XMLRPC Disable Service
    <Files xmlrpc.php>
    order deny,allow
    deny from all
    </Files>
    # SGS XMLRPC Disable Service END
    # SGS XSS Header Service
    <IfModule mod_headers.c>
    # SGS XSS
    Header always set X-Content-Type-Options “nosniff”
    Header set X-XSS-Protection “1; mode=block”
    # SGS XSS END
    </IfModule>
    # SGS XSS Header Service END

    # 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
    RewriteRule .* – [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
    RewriteBase /
    RewriteRule ^index\.php$ – [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    # END WordPress

    # Wordfence WAF
    <IfModule mod_php5.c>
    php_value auto_prepend_file ‘/home/customer/www/bellemaisonmortgages.com/public_html/wordfence-waf.php’
    </IfModule>
    <IfModule mod_php7.c>
    php_value auto_prepend_file ‘/home/customer/www/bellemaisonmortgages.com/public_html/wordfence-waf.php’
    </IfModule>
    <IfModule mod_php.c>
    php_value auto_prepend_file ‘/home/customer/www/bellemaisonmortgages.com/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

    # SGO Unset Vary
    Header unset Vary
    # SGO Unset Vary END
    # BEGIN ShortPixelWebp
    # The directives (lines) between “BEGIN ShortPixelWebp” and “END ShortPixelWebp” are
    # dynamically generated, and should only be modified via WordPress filters.
    # Any changes to the directives between these markers will be overwritten.

    # END ShortPixelWebp

    Thread Starter tourneytimenetwork

    (@tourneytimenetwork)

    Thanks for your help by the way, it’s much appreciate, I’m tearing my hear out with this and have reached the limit of my ability @sterndata

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    I’m still really suspicious of WPFC.

    Thread Starter tourneytimenetwork

    (@tourneytimenetwork)

Viewing 15 replies - 1 through 15 (of 27 total)
  • The topic ‘Remove a redirect created by WordPress’ is closed to new replies.