I have been at this for sometime now. I have read article after article and watched videos on youtube and I STILL can't figure this out. So I am asking for help on explaining how to use URL Rewrites with Magento and what I am doing wrong.
Here is what I have and what I am looking to do. Could you please describe to me in detail what I need to do?
System > Configure > Web Settings
Add Store Code to Urls = No
Auto-redirect to Base URL = No
Use Web Server Rewrites = Yes
-
Navigational Bar
In my navigational bar I have a link called "Cost of Savings" . Nav path WHY ERG > Cost Of Savings
Name = Cost of Savings Comparison URL Key = cos
-
CMS Page
I have a CMS Page created CMS > Pages > Cost of Savings Comparison
Name = Cost of Savings Comparison URL Key = cos
-
URL Rewrite System Settings for cos
Type = System ID Path = category/41 Request Path = about-erg/cos.html Target Path = catalog/category/view/id/41 Redirect = No
-
Custom URL (I Created)
Type = Custom ID Path = category/41 Request Path = about-erg/cos.html Target Path = cos Redirect = No
-
What I am doing
-
I go in to URL rewrites and I create the Custom rewrite using the info in step 4. Then before I save the new custom rewrite I delete the system rewrite magento created (step 3) because if I try to save the custom one it will error while the system one is present. After the system one has been deleted I then I save the new custom rewrite I created (step 4).
-
Once I do this I go to the front-end and refresh the site then click on Why ERG > Cost of Savings and the pages loads wonderfully. But if I go to Magento's Index Managment (system > index management) and re-index tables then go back to the front-end and refresh the site the Cost of Savings doesn't work any more and Magento replaces my deleted System URL rewrite (step 3).
-
Can someone please tell me what I am doing wrong and how do I get it so this doesn't happen and the Cost of Savings link works?
Please let me know if you have any questions. Thank you VERY very Much!!
Frank G.
Best Answer
If all you are wanting is to have an item in your main navigation that links to a CMS page without having to hardcode it into the navigation template or include it via a static block then you can use this guide here -> http://jc-designs.net/blog/2012/09/magento-adding-cms-pages-to-the-main-navigation/
There are a few out there but I always use this one (as I can never remember how to do it even after doing it umpteen times). Yes, it is ludicrously convoluted.