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.

title_permalink adds "admin" to url

January 19, 2011 10:40pm

Subscribe [4]
  • #1 / Jan 19, 2011 10:40pm

    ralph.m

    225 posts

    I’m stuck with a weird url problem (using EE 2.1.3). It should be really simple—I’ve done it lots of times before. I’m trying to set up permalinks to event articles with this code:

    <a href="http://{title_permalink=events/notice}" title="{title}">Read more</a>

    Normally, this would create a url like so:

    mysite.com/events/notice/post-title

    but what I am getting is

    mysite.com/admin/events/notice/post-title

    Where is that /admin/ coming from? I’ve never seen that before.

    The only thought I had was that it’s something to do with the mysterious Channel preferences > Path settings > Channel URL, which reads

    mysite.com/admin/

    That field describes itself as “The URL to this particular channel”, but I have no idea what that means anyway. (I checked the docs, and they explain that this field sets “The URL to this particular channel”. Hmmm. The docs could be a bit more helpful than that, really.)

    Anyhow, I have no idea if this is the source of the problem, but I’m stumped. Any advice would be appreciated.

    PS—I have removed index.php from the urls via htaccess, but have never had a problem with this before, so don’t think that’s an issue. I removed it altogether, rather than rename it to “admin”.

  • #2 / Jan 20, 2011 3:36am

    ralph.m

    225 posts

    Perhaps I should add: this is my first time running the /system/ folder above the root. I’ve moved the CP login page to

    $config[‘cp_url’] = ‘http://mysite.com/admin/index.php’;

    I suspect that’s where the /admin/ part is coming from, but not sure why.

  • #3 / Jan 20, 2011 3:39am

    Bjørn Børresen

    629 posts

    Try changing “Channel URL” to mysite.com (if you want to use title_permalink=events/notice and want the entire url to become mysite.com/events/notice/your_title_here).

  • #4 / Jan 20, 2011 3:41am

    Ingmar

    29245 posts

    Thanks, Bjørn. Does that help, Ralph?

  • #5 / Jan 20, 2011 3:48am

    ralph.m

    225 posts

    Thanks Bjorn and Ingmar. When I realized where that /admin/ was coming from, I changed the channel url from mysite.com/admin/ just to mysite.com, as you suggest, but it hasn’t fixed the problem, I’m afraid. I did think that would do it.

  • #6 / Jan 20, 2011 5:50am

    ralph.m

    225 posts

    Ah, found the problem. For some reason, in the general configuration “URL to the root directory of your site” got set to mysite.com/admin/. Don’t know how on earth that happened, but anyhow, everything’s working now. Thanks for your help!

    I would like to ask a question, though: What is the actual purpose of the “Channel URL” setting? That is, what is it actually saying? I don’t think of a channel as having a URL as such. Data from the channel can appear on any page you choose.

  • #7 / Jan 20, 2011 5:53am

    Ingmar

    29245 posts

    What is the actual purpose of the “Channel URL” setting? That is, what is it actually saying? I don’t think of a channel as having a URL as such. Data from the channel can appear on any page you choose.

    That’s true, of course, but if you’re using one of the nifty auto path variables this is a way of making sure they know where to link to 😊

  • #8 / Jan 20, 2011 8:09am

    ralph.m

    225 posts

    Ah, OK, thanks Ingmar. Now I’m off to find out about auto path variables. Haven’t heard of them before.  :cheese:

  • #9 / Jan 20, 2011 4:04pm

    Ingmar

    29245 posts

    Glad to see that helped. Please post again as needed.

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

ExpressionEngine News!

#eecms, #events, #releases