*** SOLVED *** repeating redirects

Issues related to previewing and publishing your web site.
Post Reply
vanners
 
 
Posts: 8
Joined: Thu May 30, 2019 1:26 pm

*** SOLVED *** repeating redirects

Post by vanners »

My site (completely designed in WSYWYG Web Builder) was working perfectly until I added a new page and published it. Now I get infinite redirects.

I type in the url: www.compadvantage.com.au
after all the directs are finished I end up with an Error 403 and the url in the titlebar is:
http://www.compadvantage.com.au/index.h ... index.html

I can avoid this by editing .htaccess and removing the line
Redirect 301 / http://www.compadvantage.com.au/index.html

but then you need to type in the exact url including the /index.html if you want to see the website, otherwise you see the code in index.js

Note: the .htaccess file wasn't changed when this behaviour started occurring, all I did was add the page privacy_policy.html and publish.

I have checked out the issue with redirect-checker.org, but all it shows is that http://www.compadvantage.com.au redirects to www.compadvantage.com.au/index.html which in turn redirects to www.compadvantage.com.au/index.htmlindex.html which continues to redirect until the above really long url is generated and the error occurs.

What am I doing wrong?
wwonderfull
 
 
Posts: 1276
Joined: Fri Aug 21, 2020 8:27 am

Re: repeating redirects

Post by wwonderfull »

Complex redirection... may be it does have something to do with index page cloning which had redirections already in my view. But still to have a clear understanding of your project the .wbs file would be very helpful to solve your problem. So please give us a demo file.
User avatar
Pablo
 
Posts: 21712
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: repeating redirects

Post by Pablo »

Maybe you have set the redirect in the page properties to itself?
It is difficult to help you, if I cannot see what you have done.
vanners
 
 
Posts: 8
Joined: Thu May 30, 2019 1:26 pm

Re: repeating redirects

Post by vanners »

Thanks for the response. I appreciate the help. Is there a way to attach a file in the forum, or will I need to link to it?
User avatar
Pablo
 
Posts: 21712
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: repeating redirects

Post by Pablo »

vanners
 
 
Posts: 8
Joined: Thu May 30, 2019 1:26 pm

Re: repeating redirects

Post by vanners »

Thanks for the clarification. Unfortunately I have no idea what part of the project is causing the problem. I have checked through all the files I thought might be related to the issue and didn't find anything that looked like redirection, so I can't narrow it down.

Here is my project file: https://1drv.ms/u/s!AgOHaMnuGMPvpd5kbWz ... w?e=grxnF6
User avatar
Pablo
 
Posts: 21712
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: repeating redirects

Post by Pablo »

There is no redirect on the page, so I think this is a server related issue.
vanners
 
 
Posts: 8
Joined: Thu May 30, 2019 1:26 pm

Re: repeating redirects

Post by vanners »

Thanks Pablo,

It's nice to know I haven't done anything wrong, except that it now looks like I am powerless to fix the problem.

A few other housekeeping things to mention:

The entire contents of my .htaccess file is:
Redirect 301 / http://www.compadvantage.com.au/index.html

This file sits in the same folder as my entire website: the public_html folder. So far as I could tell, the only redirect I have is the above one. So unless it is being triggered by some side effect it seems to be caught in a recursive call somehow.

Would the redirect be triggered if there was a reference to a non-existent file or address within my website?
alan_sh
 
 
Posts: 1695
Joined: Tue Jan 01, 2019 5:50 pm

Re: repeating redirects

Post by alan_sh »

If the file 'index,html' didn't exist, that would do it. So, is it exactly that name?

Why not change the .htaccess file to point to another page and see what happens?

Alan
vanners
 
 
Posts: 8
Joined: Thu May 30, 2019 1:26 pm

Re: repeating redirects

Post by vanners »

my home page is precisely index.html

if I change the redirect to:
Redirect 301 / /About_us_Page.html

then I get still infinte redirects but this is the final URL generated:
http://compadvantage.com.au/About_us_Pa ... _Page.html
wwonderfull
 
 
Posts: 1276
Joined: Fri Aug 21, 2020 8:27 am

Re: repeating redirects

Post by wwonderfull »

The best option is go back to the time when it was all good, remove that extra page and see if the problem occurs again and if it does than it definitely has something to do with that extra added page. And if it does not then it has something to do with the .htaccess redirection or the way links had been put, or your server sided issue may have something to do with that.
User avatar
BaconFries
 
 
Posts: 5364
Joined: Thu Aug 16, 2007 7:32 pm

Re: repeating redirects

Post by BaconFries »

I take it you are trying to use a .htacess 301 redirect from http to https? Looking at the url then it looks like you have not written the .htacess correctly. If I use https://compadvantage.com.au/About_us_Page.html then it works...as can be seen with the url and screenshots. I would say recheck your .htacess is correct.
Index
Image
About
Image
vanners
 
 
Posts: 8
Joined: Thu May 30, 2019 1:26 pm

Re: repeating redirects

Post by vanners »

It turns out the issue was with .htaccess

I have no idea why, but after speaking with their tech support they changed the script in .htaccess to:

RewriteRule ^$ index.html
#Redirect 301 / /index.html

I don't know if that is usual, or if that is some custom setup that is now required with their server. Either way, it is now working, which means that the website produced with WYSIWYG Web Builder was perfectly fine.
wwonderfull
 
 
Posts: 1276
Joined: Fri Aug 21, 2020 8:27 am

Re: repeating redirects

Post by wwonderfull »

we are glade it worked out, cheers...
Post Reply