Making "external link" the home page - work-a-round

This forum is for general questions about extensions for Joomla! 3.x.

Moderators: pe7er, 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.
slowlyjam
Joomla! Apprentice
Joomla! Apprentice
Posts: 25
Joined: Sat Mar 18, 2017 2:33 am

Making "external link" the home page - work-a-round

Postby slowlyjam » Sat Mar 18, 2017 2:41 am

Hello

Is there a work-a-round for making "external link" menu item the home page?

Thanks

User avatar
imanickam
Joomla! Master
Joomla! Master
Posts: 26136
Joined: Wed Aug 13, 2008 2:57 am
Location: Chennai, India

Re: Making "external link" the home page - work-a-round

Postby imanickam » Sat Mar 18, 2017 3:02 am

I doubt it. When someone types your site's URL and you want it to show a different site, you might as well use domain forwarding service from you host service provider - no need to build a site.

You could try using a menu item of the type Wrapper. With this menu item type, the external site would show within your site.
- Ilagnayeru (MIG) Manickam | இளஞாயிறு மாணிக்கம்
http://www.eegan.org - helping the poor and underprivileged
educate. empower. enrich.
Support the poor and underprivileged

slowlyjam
Joomla! Apprentice
Joomla! Apprentice
Posts: 25
Joined: Sat Mar 18, 2017 2:33 am

Re: Making "external link" the home page - work-a-round

Postby slowlyjam » Sat Mar 18, 2017 3:16 am

Thank you, imanickam.

Is domain forwarding service the same as redirect?

User avatar
imanickam
Joomla! Master
Joomla! Master
Posts: 26136
Joined: Wed Aug 13, 2008 2:57 am
Location: Chennai, India

Re: Making "external link" the home page - work-a-round

Postby imanickam » Sat Mar 18, 2017 3:49 am

Figuratively, Yes; but Not Technically.

You can get more information between the differences between forwarding and redirect in the web.
- Ilagnayeru (MIG) Manickam | இளஞாயிறு மாணிக்கம்
http://www.eegan.org - helping the poor and underprivileged
educate. empower. enrich.
Support the poor and underprivileged

slowlyjam
Joomla! Apprentice
Joomla! Apprentice
Posts: 25
Joined: Sat Mar 18, 2017 2:33 am

Re: Making "external link" the home page - work-a-round

Postby slowlyjam » Sat Mar 18, 2017 11:55 am

Thank you very much, imanickam.

Appreciate you assistance very much.

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

Re: Making "external link" the home page - work-a-round

Postby Webdongle » Sat Mar 18, 2017 12:17 pm

You could create a menu item iframe as default menu item

Or if you want a splash page

Create a html page (with a link to index.php) call the html page index.html then edit the .htaccess to use the index.html before index.php.


What is it you are trying to achieve ? (and no setting item type external url is not what you are trying to achieve it is what you think the solution is ;) )
Member of Joomla bugsquad
http://www.weblinksonline.co.uk/

slowlyjam
Joomla! Apprentice
Joomla! Apprentice
Posts: 25
Joined: Sat Mar 18, 2017 2:33 am

Re: Making "external link" the home page - work-a-round

Postby slowlyjam » Sat Mar 18, 2017 10:31 pm

Thank you, Webdongle.

I think you are right
" (and no setting item type external url is not what you are trying to achieve it is what you think the solution is ;)"

Here is my problem:

I have 2 sites site-a is the major site, site-b is a part of site-A (but a separate site).

Actually, site-b can be called from a menu item in site-a.

Problem is- when site-a is launched I want it to redirect to site-b.

That can be done by redirect, but I need site-a to be available, either in a different window/tab or can be launched from site-b

I hope that I have explained it clearly.

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

Re: Making "external link" the home page - work-a-round

Postby Webdongle » Sat Mar 18, 2017 10:54 pm

A redirect in the .htaccess of site #B ... if accessed by other than site #A perhaps ? Based on the IP of site #A ?
Which one of us will find the code first ?

Addendum

Code: Select all

Options +FollowSymlinks
RewriteEngine on
RewriteCond %{REMOTE_ADDR} !=123.45.67.89
RewriteRule index.php$ http://www.yoursitea.com [R=301,L]
Where 123.45.67.89 is the IP of site #A anything that is not equal (!=) is redirected. I put the url part but code from http://stackoverflow.com/questions/8985 ... s-but-mine

btw
More than one way to skin a rabbit :D
Member of Joomla bugsquad
http://www.weblinksonline.co.uk/

slowlyjam
Joomla! Apprentice
Joomla! Apprentice
Posts: 25
Joined: Sat Mar 18, 2017 2:33 am

Re: Making "external link" the home page - work-a-round

Postby slowlyjam » Sun Mar 19, 2017 2:43 am

Thank you, Webdongle, wonderful.

I may seem slow, but I want to make sure I get it right.

Please indulge me a question.

Shouldn't it be a redirect in the .htaccess of site #A, since it is site #A the visitor will type (http:site#A.com) then site #B will be displayed?

btw
"More than one way to skin a rabbit" is also my belief and commitment.

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

Re: Making "external link" the home page - work-a-round

Postby Webdongle » Sun Mar 19, 2017 10:49 am

My bad I misread the #A/#B part because I thought that it #B was secondary but it is primary. Yes put the redirect in site #A using the IP of site #B as the not (!) condition. http://centralops.net/co/ will give you the IP
Member of Joomla bugsquad
http://www.weblinksonline.co.uk/

slowlyjam
Joomla! Apprentice
Joomla! Apprentice
Posts: 25
Joined: Sat Mar 18, 2017 2:33 am

Re: Making "external link" the home page - work-a-round

Postby slowlyjam » Sun Mar 19, 2017 7:59 pm

Thank you, Webdongle.

That explains it.

There is just 1 more hurdle - both sites have the same IP address.

Will this cause a problem, since the URL is also entered.

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

Re: Making "external link" the home page - work-a-round

Postby Webdongle » Sun Mar 19, 2017 8:45 pm

%{REMOTE_ADDR} might have a url equivalent so you can see if it has. But try it with the IP

Addendum
http://stackoverflow.com/questions/3812 ... emote-addr
Member of Joomla bugsquad
http://www.weblinksonline.co.uk/

slowlyjam
Joomla! Apprentice
Joomla! Apprentice
Posts: 25
Joined: Sat Mar 18, 2017 2:33 am

Re: Making "external link" the home page - work-a-round

Postby slowlyjam » Mon Mar 20, 2017 7:49 pm

Hello Webdongle.

I do not seem to be getting to work.

Is it possible for you to take a look at the setup for me, to see if everything is in the right place?

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

Re: Making "external link" the home page - work-a-round

Postby Webdongle » Mon Mar 20, 2017 9:38 pm

I can only advise because I have never done that and it is not a Joomla issue. Occasionally I have a quick look at the Joomla Admin but I don't touch anything to do with the sever, .htaccess etc. Look at the links again and double check the syntax. Also make sure rewrite is working and allow for the server caching the .htaccess(if it does). Failing that see how your Domains are set in the DNS settings.

The way you "... do not seem to be getting to work" will help you locate why it fails. e.g. if it's a cannot resolve error then it could be the DNS settings. But if the sites work but fail to redirect then it could be rewrite is not enabled or the command is missing from the .htaccess.
Member of Joomla bugsquad
http://www.weblinksonline.co.uk/

slowlyjam
Joomla! Apprentice
Joomla! Apprentice
Posts: 25
Joined: Sat Mar 18, 2017 2:33 am

Re: Making "external link" the home page - work-a-round

Postby slowlyjam » Tue Mar 21, 2017 5:16 am

Thank you, Webdongle. I understand.

Please, could you take a look at the content of the .htaccess

# Options +FollowSymlinks
# RewriteEngine on
# RewriteCond %{REMOTE_ADDR} !=37.60.247.66
# RewriteRule index.php$ https://www.conference2017.maroons=jamaica.com [R=301,L]

RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://maroons-jamaica.com/$1 [R=301,L]



RewriteEngine on
RewriteCond %{HTTP_HOST} ^maroons\-jamaica\.com$ [OR]
RewriteCond %{HTTP_HOST} ^www\.maroons\-jamaica\.com$
RewriteRule ^/?$ "http\:\/\/www\.maroons\-jamaica\.com\/q" [R=301,L]

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

Re: Making "external link" the home page - work-a-round

Postby Webdongle » Tue Mar 21, 2017 2:21 pm

Code: Select all

# RewriteCond %{REMOTE_ADDR} !=37.60.247.66
# RewriteRule index.php$ https://www.conference2017.maroons=jamaica.com [R=301,L]
You have the instructions as a comment. a # means this is a comment do not act on it.

RewriteEngine On ... only needs to be declared once and before the RewritRule


You don't need

Code: Select all

RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://maroons-jamaica.com/$1 [R=301,L]



RewriteEngine on
RewriteCond %{HTTP_HOST} ^maroons\-jamaica\.com$ [OR]
RewriteCond %{HTTP_HOST} ^www\.maroons\-jamaica\.com$
RewriteRule ^/?$ "http\:\/\/www\.maroons\-jamaica\.com\/q" [R=301,L]
Member of Joomla bugsquad
http://www.weblinksonline.co.uk/

slowlyjam
Joomla! Apprentice
Joomla! Apprentice
Posts: 25
Joined: Sat Mar 18, 2017 2:33 am

Re: Making "external link" the home page - work-a-round

Postby slowlyjam » Tue Mar 21, 2017 9:48 pm

Hello Webdongle,

I commented out the code you gave me because it did not work and these are live sites.

This code is used to force the HTTPS connection for the site

RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://maroons-jamaica.com/$1 [R=301,L]

The site is located at maroons-jamaica.com/q. The code below is used to redirect maroons-jamaica.com to maroons-jamaica.com/q so that the visitor will only need to enter maroons-jamaica.com.

RewriteEngine on
RewriteCond %{HTTP_HOST} ^maroons\-jamaica\.com$ [OR]
RewriteCond %{HTTP_HOST} ^www\.maroons\-jamaica\.com$
RewriteRule ^/?$ "http\:\/\/www\.maroons\-jamaica\.com\/q" [R=301,L]

conference.maroons-jamaica.com is a separate site, but is setup to be launch from a menu item (external link) of maroons-jamaica.com. Everything works fine.

The problem is that I want that menu item to be the HOME, so that when maroons-jamaica.com is launched conference.maroons-jamaica.com is displayed.

Joomla does not allow EXTERNAL LINK to be HOME. The only other thing that I know can be used is the WRAPPER, but the look and feel is not acceptabe.

Can we get your method to work?

I have found a solution, but it is not exactly what I need. Using ENGAGE BOX a get conference.maroons-jamaica.com to open on top of maroons-jamaica.com/q, but I need something better.

Please see it here https://maroons-jamaica.com

slowlyjam
Joomla! Apprentice
Joomla! Apprentice
Posts: 25
Joined: Sat Mar 18, 2017 2:33 am

Re: Making "external link" the home page - work-a-round

Postby slowlyjam » Tue Mar 21, 2017 11:43 pm

Hello Webdongle.

Please see attachment.
You do not have the required permissions to view the files attached to this post.

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

Re: Making "external link" the home page - work-a-round

Postby Webdongle » Wed Mar 22, 2017 1:22 am

What you are trying to do will cause an infinite loop.
Member of Joomla bugsquad
http://www.weblinksonline.co.uk/

slowlyjam
Joomla! Apprentice
Joomla! Apprentice
Posts: 25
Joined: Sat Mar 18, 2017 2:33 am

Re: Making "external link" the home page - work-a-round

Postby slowlyjam » Wed Mar 22, 2017 2:16 am

Thank you, Webdongle.

That is why I am seeking help.

How can I avoid the LOOP?

or

Is there any Joomla Component that will allow me to link to an external site and can be assigned as HOME?

Jaypatel5
Joomla! Apprentice
Joomla! Apprentice
Posts: 20
Joined: Mon Mar 20, 2017 6:19 am

Re: Making "external link" the home page - work-a-round

Postby Jaypatel5 » Wed Mar 22, 2017 4:58 am

slowlyjam wrote:Thank you, Webdongle.

That is why I am seeking help.

How can I avoid the LOOP?

or

Is there any Joomla Component that will allow me to link to an external site and can be assigned as HOME?


No, slowlyjam. I think joomla does not have.

Do not get confused! here explained how to redirect one website homepage to another with htaccess file.


https://my.bluehost.com/cgi/help/htaccess_redirect

User avatar
leolam
Joomla! Master
Joomla! Master
Posts: 18223
Joined: Mon Aug 29, 2005 10:17 am
Location: Netherlands/ UK/ S'pore/Jakarta/ North America
Contact:

Re: Making "external link" the home page - work-a-round

Postby leolam » Wed Mar 22, 2017 5:54 am

A good link by @Jaypatel5. I would also ask why not using the redirect options as offered in any control panel of your hosting account? That is the very easy way

Leo 8)
Celebrating 12-Years of Professional Joomla Support Services
- Joomla Professional Support:https://gws-desk.com -
- Joomla Specialized Hosting Solutions:https://gws-host.com -
- Member Joomla Bug Squad & J-CMS Release Team

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

Re: Making "external link" the home page - work-a-round

Postby Webdongle » Wed Mar 22, 2017 8:08 am

leolam wrote:... I would also ask why not using the redirect options as offered in any control panel of your hosting account? ...
Me thinks he only wants to redirect (from the subdomain to the main domain) when the subdomain is accessed by other than the main domain. Then have the landing page of the main domain be that of the subdomain (which would mean the main domain would be redirecting to the subdomain). Which in turn would mean that the main domain could never be reached. It's a bit like saying 'I want the main door of Asda to be in Tesco but I don't want people to go in Tesco.'
Member of Joomla bugsquad
http://www.weblinksonline.co.uk/

slowlyjam
Joomla! Apprentice
Joomla! Apprentice
Posts: 25
Joined: Sat Mar 18, 2017 2:33 am

Re: Making "external link" the home page - work-a-round

Postby slowlyjam » Wed Mar 22, 2017 2:24 pm

Hello, Webdongle.

That is correct for the most part except the subdomain will have a menu item that would take the visitor back to the main domain when pressed. Something like "goto maroons-jamaica.com".

Is that possible, can it work?

slowlyjam
Joomla! Apprentice
Joomla! Apprentice
Posts: 25
Joined: Sat Mar 18, 2017 2:33 am

Re: Making "external link" the home page - work-a-round

Postby slowlyjam » Wed Mar 22, 2017 2:27 pm

Thank you, Jaypatel5.

slowlyjam
Joomla! Apprentice
Joomla! Apprentice
Posts: 25
Joined: Sat Mar 18, 2017 2:33 am

Re: Making "external link" the home page - work-a-round

Postby slowlyjam » Wed Mar 22, 2017 2:32 pm

Hello, leolam.

"That is the very easy way"

Could you explain further?

User avatar
leolam
Joomla! Master
Joomla! Master
Posts: 18223
Joined: Mon Aug 29, 2005 10:17 am
Location: Netherlands/ UK/ S'pore/Jakarta/ North America
Contact:

Re: Making "external link" the home page - work-a-round

Postby leolam » Wed Mar 22, 2017 2:34 pm

Why don't you read the messages and digest the links given to you? You don't take the advise we give to you as an option which is a bad habit

Leo 8)
Celebrating 12-Years of Professional Joomla Support Services
- Joomla Professional Support:https://gws-desk.com -
- Joomla Specialized Hosting Solutions:https://gws-host.com -
- Member Joomla Bug Squad & J-CMS Release Team

User avatar
leolam
Joomla! Master
Joomla! Master
Posts: 18223
Joined: Mon Aug 29, 2005 10:17 am
Location: Netherlands/ UK/ S'pore/Jakarta/ North America
Contact:

Re: Making "external link" the home page - work-a-round

Postby leolam » Wed Mar 22, 2017 2:35 pm

slowlyjam wrote:Hello, leolam.

"That is the very easy way"

Could you explain further?
Look at the link and READ (about cPanel redirects)for instance since you do not digest what is posted to you?

Leo 8)
Celebrating 12-Years of Professional Joomla Support Services
- Joomla Professional Support:https://gws-desk.com -
- Joomla Specialized Hosting Solutions:https://gws-host.com -
- Member Joomla Bug Squad & J-CMS Release Team

slowlyjam
Joomla! Apprentice
Joomla! Apprentice
Posts: 25
Joined: Sat Mar 18, 2017 2:33 am

Re: Making "external link" the home page - work-a-round

Postby slowlyjam » Wed Mar 22, 2017 2:52 pm

Hello, Webdongle.

Please take a look at the attachment and let me know if you think it can/will work.

Thank you all.
You do not have the required permissions to view the files attached to this post.

User avatar
leolam
Joomla! Master
Joomla! Master
Posts: 18223
Joined: Mon Aug 29, 2005 10:17 am
Location: Netherlands/ UK/ S'pore/Jakarta/ North America
Contact:

Re: Making "external link" the home page - work-a-round

Postby leolam » Wed Mar 22, 2017 2:56 pm

Do you actually read and digest what we post?

Leo 8)
Celebrating 12-Years of Professional Joomla Support Services
- Joomla Professional Support:https://gws-desk.com -
- Joomla Specialized Hosting Solutions:https://gws-host.com -
- Member Joomla Bug Squad & J-CMS Release Team


Return to “Extensions for Joomla! 3.x”

Who is online

Users browsing this forum: No registered users and 11 guests