*** SOLVED *** repeating redirects
Forum rules
PLEASE READ THE FORUM RULES BEFORE YOU POST:
viewtopic.php?f=12&t=1901
MUST READ:
http://www.wysiwygwebbuilder.com/publish.html
http://www.wysiwygwebbuilder.com/preview.html
Frequently Asked Questions about Publishing
PLEASE READ THE FORUM RULES BEFORE YOU POST:
viewtopic.php?f=12&t=1901
MUST READ:
http://www.wysiwygwebbuilder.com/publish.html
http://www.wysiwygwebbuilder.com/preview.html
Frequently Asked Questions about Publishing
*** SOLVED *** repeating redirects
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?
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?
-
-
- Posts: 1277
- Joined: Fri Aug 21, 2020 8:27 am
Re: repeating redirects
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.
Re: repeating redirects
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.
It is difficult to help you, if I cannot see what you have done.
Re: repeating redirects
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?
Re: repeating redirects
Please see this related FAQ:
https://www.wysiwygwebbuilder.com/forum ... 10&t=82134
https://www.wysiwygwebbuilder.com/forum ... 10&t=82134
Re: repeating redirects
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
Here is my project file: https://1drv.ms/u/s!AgOHaMnuGMPvpd5kbWz ... w?e=grxnF6
Re: repeating redirects
There is no redirect on the page, so I think this is a server related issue.
Re: repeating redirects
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?
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?
Re: repeating redirects
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
Why not change the .htaccess file to point to another page and see what happens?
Alan
Re: repeating redirects
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
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
-
-
- Posts: 1277
- Joined: Fri Aug 21, 2020 8:27 am
Re: repeating redirects
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.
- BaconFries
-
- Posts: 5369
- Joined: Thu Aug 16, 2007 7:32 pm
Re: repeating redirects
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
About
Index
About
Re: repeating redirects
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.
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.
-
-
- Posts: 1277
- Joined: Fri Aug 21, 2020 8:27 am
Re: repeating redirects
we are glade it worked out, cheers...