Redirection makes Joomla non-responsive

Need help installing Joomla! 3.x? For all Joomla! 3.x installation issues please use this forum.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10
Locked
Penge1958
Joomla! Apprentice
Joomla! Apprentice
Posts: 49
Joined: Tue Sep 05, 2017 4:10 pm

Redirection makes Joomla non-responsive

Post by Penge1958 » Sun Sep 30, 2018 9:18 pm

Hello, here is a nut cracker for you expert.

When I started to develop the website the domain was not redirecting to the web server so I used the direct link provided by my ISP. The direct link was: http://w305858-www.fnweb.no/ and it still is.
I put the joomla installation under the sub folder /web/ so that the direct link to my website was : http://w305858-www.fnweb.no/web/

I used Helix3 template and developed the website.
I checked it several times to see if it was responsive by using my mobile.
It was and all looked well.

Then my domain was redirected to the root folder which is http://w305858-www.fnweb.no/
In order to make it redirect to /web/ I put in a htaccess file in the root folder.

This is how it looks like:

RewriteEngine on

# Change yourdomain.com to be your main domain.
RewriteCond %{HTTP_HOST} ^(www.)?bulldogworkwear.no$

# Change 'subfolder' to be the folder you will use for your main domain.
RewriteCond %{REQUEST_URI} !^/web/

# Don't change this line.
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

# Change 'subfolder' to be the folder you will use for your main domain.
RewriteRule ^(.*)$ /web/$1

# Change yourdomain.com to be your main domain again.
# Change 'subfolder' to be the folder you will use for your main domain
# followed by / then the main file for your site, index.php, index.html, etc.

RewriteCond %{HTTP_HOST} ^(www.)?bulldogworkwear.no$
RewriteRule ^(/)?$ web/index.php [L]

It all worked fine on my computer but when I checked on my mobile phone the website was no longer responsive. By the computer I checked the source code (right click in browser and choose source),
I saw that there was a redirection which I had not put into the joomla administration as far as I remember. The code is:

<html>
<frameset>
<frame frameborder="0" name="top" scrolling="auto" noresize src="http://w305858-www.fnweb.no/web"/>
</frameset>
</html>

So....when I used my mobile and went to the direct link http://w305858-www.fnweb.no/web the website is again responsive and fine but when I go to the domain www.bulldogworkwear.no the website is not responsive,

I guess that is due to the frameset code above.

Can some explain this to me and help me out on this one ?

I think one possibility might be to ask the ISP to make the http://w305858-www.fnweb.no/web the root folder so that I don't need to use the htaccess file but I intend to use the http://w305858-www.fnweb.no for installation of some other software later on so I dont want to change the root folder if I don't need to.

Did I loose you or did you follow me on this ?

Thanks for any suggestions.

Petter

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 44093
Joined: Sat Apr 05, 2008 9:58 pm

Re: Redirection makes Joomla non-responsive

Post by Webdongle » Sun Sep 30, 2018 9:43 pm

Undo the redirects that you put in the .htaccess!!!

In the Host CP set the folder (that your Joomla is in) as the root for your Domain.
Place a test.html (with some text in it) in your Joomla folder.
Point your browser at yoursite.com/test.html
When you see the text then you know you have your site root pointing at the correct folder.
BUT YOU MUST UNDO THE REDIRECTS THAT YOU MADE IN THE .HTACCESS
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".

Penge1958
Joomla! Apprentice
Joomla! Apprentice
Posts: 49
Joined: Tue Sep 05, 2017 4:10 pm

Re: Redirection makes Joomla non-responsive

Post by Penge1958 » Sun Sep 30, 2018 10:37 pm

I have done that now but its all the same.
Yes I have cleaned cache on both the website and my browser .

I still got this code

<html>
<frameset>
<frame frameborder="0" name="top" scrolling="auto" noresize src="http://w305858-www.fnweb.no/web"/>
</frameset>
</html>


You can try it yourself at www.bulldogworkwear.no

I used url cloaking.
I used cloaking so that the url showed on the web browser was www.buldogworkwear.no
When I use simple forwarding (www.bulldogworkwear.no -> w305858-www.fnweb.no/web) it works well when it comes to mobile responsive but then I have this awfull url on my web browsers window: http://w305858-www.fnweb.no/web/index.php/nb/

This is the only way I can do it on my CP.
I don't have other options than URL forwarding or cloaking as far as I know.

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 44093
Joined: Sat Apr 05, 2008 9:58 pm

Re: Redirection makes Joomla non-responsive

Post by Webdongle » Sun Sep 30, 2018 11:12 pm

The target url must have your site on it. You are forwarding the browser to another destination ... NOT forwarding the site to another destination.

Think of giving directions of a shop. On your shop door you have directions to your new shop. But if you have not moved your stock to the new shop then you are sending your customers to an empty shop. A redirect is set of new directions Not an instruction for your content to move.
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".

annahersh
Joomla! Guru
Joomla! Guru
Posts: 734
Joined: Wed Aug 15, 2018 8:23 pm

Re: Redirection makes Joomla non-responsive

Post by annahersh » Mon Oct 01, 2018 2:26 am

You will always have errors when using the frameset in HTML5, simply because it's not supported. You should use iframe instead.

Code: Select all

<iframe src="http://w305858-www.fnweb.no/web" scrolling="no" width="100%" height="1000" seamless></iframe>
See details at https://www.w3schools.com/html/html_iframe.asp

Penge1958
Joomla! Apprentice
Joomla! Apprentice
Posts: 49
Joined: Tue Sep 05, 2017 4:10 pm

Re: Redirection makes Joomla non-responsive

Post by Penge1958 » Mon Oct 01, 2018 4:36 am

annahersh wrote:
Mon Oct 01, 2018 2:26 am
You will always have errors when using the frameset in HTML5, simply because it's not supported. You should use iframe instead.

Code: Select all

<iframe src="http://w305858-www.fnweb.no/web" scrolling="no" width="100%" height="1000" seamless></iframe>
See details at https://www.w3schools.com/html/html_iframe.asp

Were can I change from frameset to iframe ?
This is not a code I have added.

Petter

User avatar
brian
Joomla! Master
Joomla! Master
Posts: 12787
Joined: Fri Aug 12, 2005 7:19 am
Location: Leeds, UK
Contact:

Re: Redirection makes Joomla non-responsive

Post by brian » Mon Oct 01, 2018 7:21 am

Never use domain cloaking!!!
"Exploited yesterday... Hacked tomorrow"
Blog http://brian.teeman.net/
Joomla Hidden Secrets http://hiddenjoomlasecrets.com/

Penge1958
Joomla! Apprentice
Joomla! Apprentice
Posts: 49
Joined: Tue Sep 05, 2017 4:10 pm

Re: Redirection makes Joomla non-responsive

Post by Penge1958 » Mon Oct 01, 2018 9:10 am

brian wrote:
Mon Oct 01, 2018 7:21 am
Never use domain cloaking!!!

I understand that now.
But cloaking or forwarding was the only way to redirect to were the code is since its not in the root folder.
And forwarding did not look good.

Question now is how to get rid of the frameset code or how to change to iframe.

Any clue ?

Petter

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 44093
Joined: Sat Apr 05, 2008 9:58 pm

Re: Redirection makes Joomla non-responsive

Post by Webdongle » Mon Oct 01, 2018 9:12 am

Penge1958 wrote:
Mon Oct 01, 2018 9:10 am
brian wrote:
Mon Oct 01, 2018 7:21 am
Never use domain cloaking!!!
...
But cloaking or forwarding was the only way to redirect to were the code is since its not in the root folder.
...
No you can set that folder as the site root.
What code are you referring to ?
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".

Penge1958
Joomla! Apprentice
Joomla! Apprentice
Posts: 49
Joined: Tue Sep 05, 2017 4:10 pm

Re: Redirection makes Joomla non-responsive

Post by Penge1958 » Mon Oct 01, 2018 9:28 am

Webdongle wrote:
Mon Oct 01, 2018 9:12 am
Penge1958 wrote:
Mon Oct 01, 2018 9:10 am
brian wrote:
Mon Oct 01, 2018 7:21 am
Never use domain cloaking!!!
...
But cloaking or forwarding was the only way to redirect to were the code is since its not in the root folder.
...
No you can set that folder as the site root.
What code are you referring to ?

If you read earlier postings in my tread you'll see that there is a code that redirect my page to the direct-link url and that code uses frameset. Someone here said I should use iframe instead.

About making the /web/ as the root folder of the domain. I want to use the root folder as it is today for another software (Prestashop) that will be moved to the same web hotel because that software is already installed at another web hotel and it its root folder. So in the way to make the moving of that software I want to use the root folder as it is today for that software and use subfolder /www/ for the joomla software. Can I still make that folder as the root for that domain (bulldogworkwear.no) ??

The Prestashop installation has its own domain. The reason for putting it on the same web hotel is to save money since I use the same web hotel for the both installations.

Hope I explained it clearly :-)
And maybe there is something in my thinking I have made wrong or do it in a way that is not wise so please feel free to correct me :-)

I appreciate all help :-)

Petter

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 44093
Joined: Sat Apr 05, 2008 9:58 pm

Re: Redirection makes Joomla non-responsive

Post by Webdongle » Mon Oct 01, 2018 1:28 pm

OK so you have 2 Domain names one of which has Hosting the other doesn't.
Because the one that has Hosting only supports 1 Domain name ... you have a site in a sub folder and forwarding the second Domain name to it.
Is that it ?
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".

Penge1958
Joomla! Apprentice
Joomla! Apprentice
Posts: 49
Joined: Tue Sep 05, 2017 4:10 pm

Re: Redirection makes Joomla non-responsive

Post by Penge1958 » Mon Oct 01, 2018 1:33 pm

Webdongle wrote:
Mon Oct 01, 2018 1:28 pm
OK so you have 2 Domain names one of which has Hosting the other doesn't.
Because the one that has Hosting only supports 1 Domain name ... you have a site in a sub folder and forwarding the second Domain name to it.
Is that it ?
Yes that is how it will be in the future.
The second domain name is connected to another provider with web hotel at this moment but will be most likely be moved to the same host as Bulldogworkwear in the near future and then files will be copied into the same web hotel only just at the root folder and not at the /web/ folder to avoid mixing the files.
So that is the reason why I have Joomla installed at a sub folder (/web/)

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 44093
Joined: Sat Apr 05, 2008 9:58 pm

Re: Redirection makes Joomla non-responsive

Post by Webdongle » Mon Oct 01, 2018 2:05 pm

Many Hosts (in their CP) have an option to redirect. There you simple select frame or html redirect and type in the destination url (or url/folder). When you save the settings then that url is redirected to the target url (or url/folder).

If the target Host allows multiple Domain names it is often better pay a small fee to have the other Domain name transferred to that Registrar (tag holder). If you must redirect then ... iframe keeps the same url showing but is bad for seo ... htaccess redirect is better for seo but displays the target url.
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".

Penge1958
Joomla! Apprentice
Joomla! Apprentice
Posts: 49
Joined: Tue Sep 05, 2017 4:10 pm

Re: Redirection makes Joomla non-responsive

Post by Penge1958 » Mon Oct 01, 2018 2:39 pm

The only options I got on CP are:

Webhotel:
- information about the web hotel
- Change password
- Delete web folder
- Add to domain
- Write a comment
- Install wordspress
- Change script version


Domain:
- DNS
- Forward domain
- Add sub-domain
- Show Whois
- Change Whois
- Show auth. code

My root today is /www/
I have joomla in /www/web/
If I change root to /www/web/ then I would not be able to use /www/ for my prestashop installation in the future. Of course if that is the only way to fix my no-responsive problem then I would have to ask my provider to make /www/web/ to be the root.

When it comes to the other domain it will be moved to the new host as a holder. Yes...as you described.

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 44093
Joined: Sat Apr 05, 2008 9:58 pm

Re: Redirection makes Joomla non-responsive

Post by Webdongle » Mon Oct 01, 2018 3:15 pm

You can
"- Add to domain"
and
"Forward domain"

Both options that I have already suggested. Do you have those options with both Host's?
My suggestions is just add the second domain name to the Host server that you have the files.
What are the two domain names that you own?
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".

Penge1958
Joomla! Apprentice
Joomla! Apprentice
Posts: 49
Joined: Tue Sep 05, 2017 4:10 pm

Re: Redirection makes Joomla non-responsive

Post by Penge1958 » Mon Oct 01, 2018 4:23 pm

Well....actually they are not mine but a client of mines. One is bulldogworkwear.no and the second is arbeidstøy.no

Yes the options I mentioned are available for both domains after the second one has been moved, which is upto my client.


Petter

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 44093
Joined: Sat Apr 05, 2008 9:58 pm

Re: Redirection makes Joomla non-responsive

Post by Webdongle » Mon Oct 01, 2018 6:24 pm

If your client has moved his Domain name to another Registrar (Host)
Does it have disk space and minimum requirements to run Joomla?
If yes then use Akeeba to move the site
If no then use "- Forward domain" (it should give a a choice of htaccess or frame redirect [forwarding] ... just add the Target (url). That should solve your problems ... if it doesn't then you know you have pointed the Forward (redirect) to the wrong place (or the Target has a redirect that it should not have).
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".

Penge1958
Joomla! Apprentice
Joomla! Apprentice
Posts: 49
Joined: Tue Sep 05, 2017 4:10 pm

Re: Redirection makes Joomla non-responsive

Post by Penge1958 » Mon Oct 01, 2018 7:33 pm

Yes ....during this tread I have switched from cloaking to forwarding and I have a mobile responsive site again
When the user type in www.bulldogwear.no , the site shows up with the url w305858-www-fnweb.no in the address windows which is the address I have forwarded to but its not a very pretty address. When using cloak I had still www.bulldogwear.no in the address windows but then I did not get the responsive layout.

I believe I tried to forward www.bulldogworkwear.no to www.bulldogworkwear.no/web/ which would have looked nicer but I don't think that worked. But I will try again.

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 44093
Joined: Sat Apr 05, 2008 9:58 pm

Re: Redirection makes Joomla non-responsive

Post by Webdongle » Mon Oct 01, 2018 8:02 pm

If your customer moved their Domain name from your Host then the bad url is their problem.

But
"I believe I tried to forward www.bulldogworkwear.no to www.bulldogworkwear.no/web/ which would have looked nicer "
Is forwarding the Domain name to a folder of the same Domain name. That is totally ridiculous !!!
Just set /web folder as the site root for the /bulldogworkwear.no
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".

Penge1958
Joomla! Apprentice
Joomla! Apprentice
Posts: 49
Joined: Tue Sep 05, 2017 4:10 pm

Re: Redirection makes Joomla non-responsive

Post by Penge1958 » Mon Oct 01, 2018 8:05 pm

Webdongle wrote:
Mon Oct 01, 2018 8:02 pm
If your customer moved their Domain name from your Host then the bad url is their problem.

But
"I believe I tried to forward www.bulldogworkwear.no to www.bulldogworkwear.no/web/ which would have looked nicer "
Is forwarding the Domain name to a folder of the same Domain name. That is totally ridiculous !!!
Just set /web folder as the site root for the /bulldogworkwear.no
1) Yes if you can tell me how to do that with the options I have ?

2) Can I then use the original root later for the other domain as I described earlier ?

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 44093
Joined: Sat Apr 05, 2008 9:58 pm

Re: Redirection makes Joomla non-responsive

Post by Webdongle » Mon Oct 01, 2018 9:19 pm

1. Move the the Joomla to the Domain root.
2. No because because either bulldogworkwear.no/ will show the root or the htaccess wil redirect it. You can not have two sites on 1 Domain name.

What are your 2 Domain Names ?
Which one is Hosted on a server that meets minimum requirements ?
Which Domain name are you trying to forward?
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".


Locked

Return to “Installation Joomla! 3.x”