Joomla home looses sef alias for component - joomla

I am developing a component for joomla 1.7/2.5 with a few modules that generate sef links to the component with different views.
Everything is shiny and fine, except for the home page of the site so http: //localhost/en/
When I'm on the home page all my component links change to http: //localhost/en/component/componentname/category/2032 wheres if I use this link: http: //localhost/en/whateverhere the same links are like they should be http: //localhost/en/component_menu_alias/category/2032
no content and no menu has the alias "whateverhere" so I'm confused as to how joomla knows the right alias when it's on whateverhere and not when it's on the home http: //localhost/en/
Any ideas as of what is going wrong here?
P.S.: the page is multy lingual.

Am soon to face that challenge myself, and have Supporting SEF URLs in your component bookmarked. Let me know if it works for you.

Related

Angular UI-Router (1.x) Change Host Url

I have a requirement from a client to change the web site Url to a subdomain when they enter the checkout section of the site we are developing for them. For example from www.mysite.com to checkout.mysite.com. We are using UI-Router in HTML5 mode and would like to have the router change the Url to the subdomain instead of going to www.mysite.com/checkout. Does anyone know a way that this can be accomplished? I've also tried using pushState but without success. All of the subdomain suggestions I've tried have not worked. Honestly even if I just put a "fake" url that would work fine too. Changing the Url is more of a visual thing instead of actually redirecting to a subdomain.
After much review I found that this cannot be done because it is a security issue; even switching to a subdomain (which is what I was trying to do) is not allowed.

Joomla - Use index.php instead of "/" as homepage

Let:
test.tld = domain
test.tld/index.php = my Joomla home page
test.tld/ = a pre-release page (index.html) that isn't Joomla
Now Joomla always wants to go to test.tld/ as homepage so I basically get lost (because it isn't Joomla)
How to set Joomla so that the Menu to homepage is "test.tld/index.php" not assume I want "test.tld/" ?
I already tried making a dummy homepage on an invisible menu so that the "home" on the navigation isn't really a "home"
Is there no better way? Thanks
You can solve this issue in two ways:
Recommended: Your web-server default index is set to index.html file. You can change that based on your web-server (Apache, Nginx, whatever).
NOT Recommended: You can disable Rewrite URLs feature in Global Configuration of your site, this will show index.php on every page.

joomla rename component url using htaccess

I'm building an eshop using Joomla 2.5 and a commercial component for a guy who wants to have multiple vendros and I'm stuck on how to change the component's url.
What I want to change is the url that is displayed when the users passes from a link with his mouse.
For instance, the component has a SEF function which rewrites urls and makes them like that:
http://www.site.com/componentname/products/productname-productid-productcategoryid-vendorid.html
http://www.site.com/componentname/catalog/categoryname-categoryid-numberofpage.html
and what I want is to make it:
http://www.site.com/shop/products/productname-productid-productcategoryid-vendorid.html
http://www.site.com/shop/catalog/categoryname-categoryid-numberofpage.html
So when a user passes over a link it will show him the new url. Is this possible with .htaccess and rewrite rules or this can only be done through the component only? I'm asking this as the component is encoded with ioncube so I can't do it myself.
Thanks in advance!
While you can use .htaccess to rewrite any URL it won't work with Joomla! as the SEF URL is created by JRoute which uses a combination of the core route function and the route.php for the component.
The URL segments are used to find the right component to handle the request, so to change the way the URL is built you would have to modify the route.php of the component (and obviously other parts as well).
For more information on how SEF support works, read this on docs.joomla.org

Set up a cms page for Magento

I've been trying to set up a CMS page in magento to be the home page, and it's just killing me - how hard should this be? no matter what I set up, I get a 404.
Can somebody tell me basic steps to set up a CMS page as the home page for a Magento install, living at:
http://www.mymagentoinstall.com/
I can't have the url key for the CMS page be empty, but setting the default page in the System->Config->Default Pages->CMS Home Page (which seems like it should work), still gives me a 404.
thx for any help
Hours of head banging later .... I’ve changed the parameter “Use Web Server Rewrites” on System -> Configuration -> Web from Yes to No. And it worked! My provider set this by default, so had to change it. Only downside is that I now get the /index.php extension added.
Did you check to make sure that the page was enabled and visible in your store view?
Ok - figured it out. In the System->Config->Web, the Default Web URL needs to be 'cms' (no quotes) - I guess that tells Magento to use the cms page instead of a default url.
In csm - pages create some html in the page, eg start simple with My Homepage.
Give it a name and take care the url is "home" (without the quotes.
Now go to system - configuration - web and select your homepage (name) from the dropdown where in lets you choose the homepage.
That should do it.
Your CMS Page Identifier should be home
I was running into the same issue. No matter what I did, the home page came back as a 404. I had it working on a test server (with a different database) and compared the options side by side. Absolutely nothing worked, the home page, named 'home' and the 'cms' was properly set, mod_rewrite working, htaccess file just peachy...but domain.com/ wouldn't work. after a few hours I saw that domain.com/home/ did, though I swear it hadn't been.
Finally I wiped the blood off the keyboard where I'd been smashing my head against it and went into url rewrite management and set id path to '/', request path to '/' and target path to '/home/' and it works like it should have all along. Hope this helps someone else!

Joomla pagination not working with alias url

I am working on joomla application. I am using SEO url for accessing application page, but some of page use alias. When I use pagination on alias pages it will give page not found error, but with SEO url it's working fine. Anybody have any suggestion for use pagination on joomla alias page.
SEO url: http://example.com/community/inbox
Alias url: http://example.com/inbox.html
Thanks
You should always use the non-url-safe notation in your code and add JRoute to it. This might look like this:
$link = JRoute::_(JURI::base()."index.php?option=com_yourcomponent&view=yourcomponent&Itemid=1&limitstart=20");
Above is a link to the second page in a component view, when displaying 20 items a page. Hope it helps.

Resources