3

I have Joomla behind a reverse proxy. I want the Home menu item to point to /, not the fully qualified domain name that it is running on. How do I do that?

I tried changing the Home "Menu Item Type" to System Links > URL, and setting the URL to /, but when I saved, it gave an error

enter image description here

Error
Save failed with the following error: The home menu item must be a component.

It is generating HTML like the following, with the FQDN, not a relative URL.

<a href="https://cms.domain.net" class="uk-navbar-item uk-logo">
    <img src="https://cms.domain.net/images/Logo-Web-120.gif" class="uk-responsive-height" alt="" uk-gif=""></a>

If a user clicks on a link like this, they are sent to another domain behind the reverse-proxy. Then none of the other links work.

Joomla! 3.8.2 Stable

0

Assuming I understood your question correctly, the best way to address this solution, it to make the homepage point to the "Featured Articles" menu item, and then override the menu template to have a different URL for the homepage menu item.

  • Can you describe how to 'override the menu template'? – Chloe Dec 17 '17 at 18:33
0

I've temporarily worked around the problem by using an .htaccess redirect so that if anyone visits the home page and they are not the reverse-proxy, then they will be redirected to the www site.

RewriteCond %{HTTP:MySecret} !^xxxxxx999999$
RewriteRule ^$ https://www.example.com/ [R=301,L]

I still think the link itself should be fixed. I should be able to have full control over that link, like I can in Wordpress.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.