[solved] how to make SEO friendly urls for Article page

Author Message

manoj sharma

Sunday 07 June 2009 11:57:26 pm

Is there a way to make seo friendly url when we create article page?

whenever we create an article page url contains "node_123" in the url.

how can we make eliminate node and nodeif from url and add more seo friendly word?

Christian Rößler

Monday 08 June 2009 12:34:36 am

If course there is a way :)

You might take a look here:
http://ez.no/developer/articles/how_to_configure_an_ez_publish_site/url_modifications

The catch is to add

[SiteSettings]
ForceVirtualHost=true

in site.ini.append.php.
Remember to rename the file '.htaccess_root' to '.htaccess' to enable the url-rwriting via apache's mod_rewrite.

christian

Hannover, Germany
eZ-Certified http://auth.ez.no/certification/verify/395613

André R.

Monday 08 June 2009 2:11:56 am

The above suggestion will not help in this case, as it seems like you have some url alias issues. What version are you on? If 4.0.1 or 4.0.2 then you should update to 4.0.6 when it comes later this week (4.0.5 has an issue with notification cronjob with chrashes the frequent cronjobs, including workflows. If you do not use it then you can safly update to 4.0.5).

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

manoj sharma

Monday 08 June 2009 5:15:13 am

Thanks for replying guyz.

i am using 4.0.1 version with ezflow.
the problem with second solution is that i cannot upgrade to newer version because i have modified many core files of ezpublish for site functionality and layout.

yes i have problem with url aliasing.
i want to remove node_id from url and want to put some meaning for name instead.

say for example if i am create an article on waterfall than instead of www.mysite.com/node_123 (assuming article's node_id is 123) i want something like this
www.mysite.com/waterfall

thanks in advance.

manoj sharma

Monday 08 June 2009 5:20:41 am

i have tried with 4.1.1 version too.
though the url aliasing problem is resolved another problem appears that it shows name as sub menu for the page.

say for example i have created test me as an article under the home menu. i have created a link on home page say for "test me please" and i have given its href="test-me". its working fine.. page is getting redirected, but the problem that appears that on this page test me is shwoing as left menu.

i dont want to show any link on page expected for on home page from which i am redirecting control to this page.

is there a way, to create a link and dont show it on page. say for example i have create link go to my profile page. but dont show on the page under which this my profile page is created.

sorry for my english.

Thanks & Regards,

Christian Rößler

Monday 08 June 2009 5:36:22 am

Oh, i misunderstood your issue.
You have already enabled 'ForceVirtualHost' in site.ini.append.php ...

Some of my sites are still running ezP 4.0.1 and temporarily url_alias 'problems' occur.
I simply run a manual / temporary workaround as follows:

1. Backup your database!
2. truncate table ezurlalias_ml    (not ezurlalias !)
3. run  php bin/php/updateniceurls.php
4. clear the cache

This will (hopefully / somehow / not always) rebuild the urlalias-table.
I run it whenever url-aliases get screwed up. Don't know if this might help for you or if this partial solution anyways - but as André suggested, upgrading seems to be the most valuable solution.

What a pity - you have modified the ezP-kernel ;-)

Christian

Hannover, Germany
eZ-Certified http://auth.ez.no/certification/verify/395613

manoj sharma

Monday 08 June 2009 11:41:34 pm

i think i was unable to explain my problem properly. let me again describe my problem.

i am using ezpublish version 4.0.1 with ezflow.
when i create a page as folder or as link, its link appears either as menu or as a sub menu on website.

i dont want either of them. what i want is a page whose link should not appear on the page (website). Simply page is created, latter on we can link this page to some href and show this page.

i can do this functionality by creating a page as an article, depending upon on requirement. Now the problem in creating a page as an article is that i have to use "node_id" in the href to link newly created article, which i dont want.

i want a way to remove node_id and use some meaning full name like page name or something similar.

example:
here is test content on my home page.

"hello this is my home page and i am going to show you something interesting. just showing you my problem with example. please bare with me. thanks in advance. CLICK HERE TO GO TO WATERFALL PAGE. so what do want is not clear here so making myself more clear with this content".

in the above test content sentence in capital word is a link to another page. that page is created as an article.

now that article has node_id as node_133. now to link this page i have give url in href as
<link href="node_133">CLICK HERE TO GO TO WATERFALL PAGE</link>.

so my url in address bar becomes www.mysite.com/node_133. instead i want url as www.mysite.com/waterfall.

i want to remove this phrase from url "node_133" and want to appear as "waterfall" instead.

hope this will help in understanding my problem.

Thanks & Regards,
Manoj sharma

manoj sharma

Friday 12 June 2009 12:43:00 am

finally i found to how to make seo friendly urls for article pages.

the concept here is by using virtual urls we can do this.

http://ez.no/doc/ez_publish/technical_manual/3_8/concepts_and_basics/url_translation

i achieved it through url wildcards.

http://serwatka.net/blog/a_few_words_about_url_wildcards_in_ez_publish_4_0

go to admin panel >> select setup tab >> url wildcards.

New url wildcard = url desired url
Destination = exact url of the page

example: sitemap

assume ur article's node id is 100, so your url will be something like this content/view/full/100

hence
New url wildcard = sitemap
destination = content/view/full/100

dont click on redirect checkbox. otherwise you will be redirect with orignal url.

now go to page and provide href="http://yoursite.com/sitemap".

that's all, now go and refresh page and click on the link.

Thanks & Cheers
Manoj

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.