Menu Content

Podpora

> Diskusní fóra, FAQs & placená podpora
Welcome, Guest
Username Password: Remember me

404 Error on hard coded pages
(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: 404 Error on hard coded pages

404 Error on hard coded pages 14 years, 5 months ago #12881

I have JoomSEF 3.6.5 on my site (had problem with 3.6.3 also). On my template, at the bottom, I hard coded a url to our privacy policy and when its clicked on, it gives a 404 error.

Now if I take that same page and make a menu item and click on it, the page is viewable. After that has been done, I can delete the menu and still reach the page via the hard coded link at the bottom. But if I purge the url's because I updated something, I lose it.

Why will it not "accept" hard coded link on the site?

If I can't make it hard coded, ie:
<a href="http://www.southernrescue.org/privacy-policy.html">
which is typed directly into the html in the template, then what can I do to add it as part of the html on the template and still have JoomSEF handle it?

The site in question is at www.southernrescue.org

Re:404 Error on hard coded pages 14 years, 5 months ago #12892

I am working on a website for our non-profit and need to get his issue resolved rather quickly. Just want to know how to hard-code links into a template and know that they will be included in the JoomSEF without having to add them manually.

Re:404 Error on hard coded pages 14 years, 5 months ago #12899

I have it working right now, because I created a manually added link, but I want to know how to make it be accepted without having to manually add it. Thanks

Re:404 Error on hard coded pages 14 years, 5 months ago #12906

  • dajo
  • OFFLINE
  • Posts: 5069
Hi,

The correct approach is not to use the SEF link like
http://www.southernrescue.org/privacy-policy.html

but to use the non-SEF URL and use the PHP to convert it to the SEF link correctly:
<a href="&lt;?php echo JRoute::_('index.php?option=com_content&view=article&id=1&Itemid=1'); ?&gt;">


Best regards,
ARTIO Support Team
ARTIO Support Team
Last Edit: 14 years, 5 months ago by dajo.
  • Page:
  • 1
Přihlášení uživatele Prázdný