Menu Content

Support

> Forums, FAQs & Paid Support
Welcome, Guest
Username Password: Remember me

Main content does not shown when using main addres
(1 viewing) (1) Guest
Support forum for users using free edition of JoomSEF 3 (Joomla 1.5 compatible). These forums are mainly for mutual help between users.

Please note that due to our capacity limitations, we do not monitor these forums regularly.
  • Page:
  • 1

TOPIC: Main content does not shown when using main addres

Main content does not shown when using main addres 16 years, 10 months ago #3727

Hi:
I have JoomSEF v2.2.5 on a Joomla 1.0.13 site. Everything seems to work ok except for one important part: The main content (the first item in the main menu) is not show when I use my root addres (i.e. www.mydomain.com/) it shows the template and menus but a 404 in the place where the main content should go.
However if I click on the first Item in the main menu (i.e. www.mydomain/home.html ), it works and shows my otherwise main page.
I tried changing my first main_menu item using something different than com_frontpage, but I got exactly the same behavior.
I also double checked that the .httaccess is as in the documentation, but no luck so far.

Although I would like to have this problem figured out, I would be happy if at least somebody can suggest me a way of forcing www.mydomain.com/ go directly to www.mydomain.com/home.html by JoomSef configuration or by .htaccess
Any ideas?
Thanks.
Roman.

Re:Main content does not shown when using main addres 16 years, 10 months ago #3747

  • miun
  • OFFLINE
  • A pesimist is just a well-informed realist.
  • Posts: 563
Hello,
to forward from www.mydomain.com/ to www.mydomain.com/home.html is best to put a rewrite rule to .htaccess.

Something like RewriteRule ^/?$ /home.html could work.

As regards the problem with dissapearing the first menu item, this is quite weird. Are you using the standard Joomla menu component or are you using some advanced one? Maybe you can insert some kind of \"dummy\" item there in case the first item is always not visible. Can this be also permission problem or is this item public? There might be several other reason also, but this is kind of difficult to debug teoretically only.
ARTIO Support Team

Re:Main content does not shown when using main add 16 years, 10 months ago #3770

Michal:
Thanks for your reply, it gave me a good pointer.

I should had put the whole picture in my previous posting. Since I already have spent a lot of time debugging my specific problem, I am willing to live with my current workaround, let me document what was the scenario and what I ended up doing, just in case somebody is as frustrated as I was for the last couple of days.

Setup:
+ Webhost: Hostmonster. They allow you unlimited domains.
+ The main domain should be directly in public_html, however I chose to have my main domain in a subdirectory (public_html/subdirectory). Below is the .htaccess (1) recommended by hostmonster to redirect the main site to a subdirectory.
+ I installed JoomSef and used the .htaccess in public_html/subdirectory/ as per JoomSef documentation (the \"Rebase\" included).

Problem/ Scenario:
+ When I would go to www.mymainsite.com/ I would get My template, menus, etc. However in the space for main_content I would get a 404 error.
+ As you all know, the content pointed in the first item in the \"mainmenu\" is the one, by default, that should show up when you go to your mainsite address with nothing trailing (www.mymainsite.com/)
+ In my case, once I got the \"template\" with the 404 error in the main content, all the SEF links in the menus would work. Lets say that the link in my first item was www.mymainsite.com/home.html , it would show my correct main page.
+ In other words everything worked nicely but the initial access to my page www.mymainsite.com/ (that partially worked)

Workaround:
+ As much as I would like to have www.mymainsite.com/ working properly, I can live with forwarding requests from www.mymainsite.com/ -> www.mymainsite.com/home.html thus
+ I added forwards in the .htaccess in public_html/ (notice: not in the joomla directory \"public_html/subdirectory\" in my case) to forward www.mymainsite.com/ ->www.mymainsite.com/home.html and mymainsite.com/ -> www.mymainsite.com/home.html

RewriteCond %{HTTP_HOST} ^mymainsite.com$
RewriteRule ^$ www.mymainsite.com/home.html [L,R=301]

RewriteCond %{HTTP_HOST} ^www.mymainsite.com$
RewriteRule ^$ www.mymainsite.com/home.html [L,R=301]


I eventually will revisit this issue, but for the time being I will leave it this way. I am still open to try any suggestions you might have.
Regards,
Roman.
ww.sb-st.com/ :)
  • Page:
  • 1
User Login Empty