ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

display weblog URL title rather than entry number

July 29, 2010 5:49am

Subscribe [3]
  • #1 / Jul 29, 2010 5:49am

    redfred

    141 posts

    I’m sure this is probably simple but can someone tell me how to do this?

    so I want

    index.php/template_group/article/114

    to be

    index.php/template_group/article/url_title

    I also want to remove index.php from the url if possible. If anyone can explain the easiest way to do this it would be greatly appreciated!

    I have read you can do it with the .htaccess file but not sure about how to create this on a Mac.

    Thanks

  • #2 / Jul 29, 2010 8:39am

    Rob Allen

    3114 posts

    <a href="http://{entry_id_path=template_group/article}">{title}</a>

    will give you index.php/template_group/article/114

    <a href="http://{url_title_path=template_group/article}">{title}</a>

    will give you index.php/template_group/article/my_article_name

    See the Wiki article for .how to create a .htaccess file, the “exclude” method is probably the esaiest -http://expressionengine.com/wiki/Remove_index.php_From_URLs/#Exclude_List_Method

  • #3 / Jul 29, 2010 8:53am

    redfred

    141 posts

    Thanks, the url path is now correct, even though I was using permalink=”... for the links - the news blog was showing the URL title but other blogs were showing the number. Any idea why this was happening?

    Can’t get the .htaccess file to work for some reason.

  • #4 / Jul 29, 2010 12:06pm

    redfred

    141 posts

    Just realised, page urls still work if i remove ‘index.php’ from the address, but it still shows the index.php by default. Any idea how to get round this?

  • #5 / Jul 29, 2010 12:43pm

    Sue Crocker

    26054 posts

    As long as you have the right .htaccess file, and you remove index.php from Admin ›  System Preferences ›  General Configuration Name of your site’s index page, you should be OK.

    Does that help?

  • #6 / Jul 29, 2010 1:00pm

    redfred

    141 posts

    Have tried removing index.php from ‘Name of your site’s index page’ but this didn’t work. Still comes up by default in the URL

  • #7 / Jul 29, 2010 1:03pm

    Sue Crocker

    26054 posts

    How are you building your links?

  • #8 / Jul 29, 2010 1:06pm

    redfred

    141 posts

    Good point - I think I will need to go through and change these!

    Thanks for the help

  • #9 / Jul 29, 2010 3:36pm

    Ingmar

    29245 posts

    Glad to see Sue was able to help. Please post again as needed.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases