Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-07-20 18:08:24

sgoodwin
Member
From: Boston, MA
Registered: 2006-05-11
Posts: 13

clean URLs question

Hi, I’m new to textpattern and developing a site at http://72.18.130.123/~ygcqiflk/.

I’m using the ako_nav plugin to generate the top-level navigation and cbs_category_list plugin (because it was the only section-specific way I could find to get a list of links) to generate the second-level links (see the Credentials section, for example). I’ve selected /section/title permanent link mode in the admin interface, so I’m expecting my URLs to look like this:

<code>http://www.domain.com/section/title-of-article</code>

Instead, what I’m seeing is <code>http://www.domain.com/section/?c=title-of-article</code>

My .htaccess file is the textpattern default except I had to uncomment the RewriteBase line and enter this:

<code>RewriteBase /~ygcqiflk/</code>

I verified that mod_rewrite is loaded: http://72.18.130.123/~ygcqiflk/test.php

I tried changing the permanent link mode in the admin interface just to see what was going on, and I noticed that that didn’t change my URLs at all!

Can someone help me figure out what I’m doing wrong? I’d really love to get that <code>?c=</code> out of the URLs. Thanks in advance for your help. I love textpattern!

Offline

#2 2006-07-20 18:51:37

jayrope
Plugin Author
From: Berlin
Registered: 2006-07-06
Posts: 700
Website Mastodon

Re: clean URLs question

didi you check this?

http://textpattern.com/faq/66/404-error-when-linking-to-article-pages


A hole turned upside down is a dome, when there’s also gravity.

Offline

#3 2006-07-20 18:53:06

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: clean URLs question

What you are seeing is http://www.domain.com/section/?c=name-of-category :) It’s a category page url, and what your second level nav is showing are categories, not articles. I’m guessing now that “Jennifer Pinck”, “Julie Klump”, etcetera, are in fact articles, but also are in a category with the same name. Given the site’s structure I think you could just dump the categories, and create your second level nav with, on the page, something like
<code>
<ul><txp:article_custom section=“credentials” form=“nav_form” /></ul>
</code>
And article form ‘nav_form’:
<code>
<li><txp:permlink><txp:title /></txp:permlink></li>
</code>

Offline

#4 2006-07-20 22:02:13

sgoodwin
Member
From: Boston, MA
Registered: 2006-05-11
Posts: 13

Re: clean URLs question

awesome! thanks so much!

Offline

Board footer

Powered by FluxBB