Domain Redirect Issue

Hi, My website url is https://holidaycountdowns.xyz

Basically when I go to holidaycountdowns/ (1 slash) it takes me to an outdated version of my website.

when I go to https://holidaycountdowns// (2 slashes) it brings me to my updated one.

I don’t know what this is but heres my current .htaccess file.

# Custom Error Documents
ErrorDocument 403 /403.html
ErrorDocument 404 /404.html
ErrorDocument 400 /400.html

# Redirect to www
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteRule ^ https://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L]

# DirectoryIndex configuration
DirectoryIndex docs.html index.html terms.html privacy.html jailbreak.html support.html events.html 

# Redirect to HTTPS
RewriteCond %{HTTPS} off
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]

# Redirect based on URL
RewriteCond %{HTTP_HOST} !^www\. [NC,OR]
RewriteCond %{REQUEST_URI} !^/(robots\.txt|favicon\.ico|sitemap\.xml)$ [NC]
RewriteRule ^(.*)$ https://www.%{HTTP_HOST}/$1 [R=301,L]

this is just the browser cache serving you the old page and for me both single and double slash give the same page

clearing your browser cache should fix the problem

8 Likes

Thank you! it worked.

2 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.