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/ :)