Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#25 2004-12-13 22:21:19

zem
Developer Emeritus
From: Melbourne, Australia
Registered: 2004-04-08
Posts: 2,579

Re: [plugin] [ORPHAN] zem_rewrite: configurable clean URLs

> The problem is that when I specify for zem_permalink to create link to an article that is not in a category, such as the ones in the About and Contact sectioons, it inserts “{category}” even thought none of the articles in that section have one.

Good point. I’ve added a more general fix for this kind of problem. It’ll appear in the next release.

> The second change was to the id retreval code. I added a little logic to detect whether a category was included in the url, and if so, adds that to the id retreval criteria.

I’m working on a new plugin that does the job of retrieving articles. I’ll incorporate the idea.

Thanks,
z.


Alex

Offline

#26 2004-12-14 22:31:04

andreas
Member
Registered: 2004-02-28
Posts: 453
Website

Re: [plugin] [ORPHAN] zem_rewrite: configurable clean URLs

I can’t seem to get this to work. I installed v0.5 and replaced my old permling tags with <txp:zem_permlink>.

I edited the plugin code to eliminate the ID and the permlinks appear on my front page but if I call an article I get a 404.

I also get one if I don’t modify the default permling structure of the plugin.

My TXP install runs on a subdomain (notes.andreas-kalt.de) if that is of any importance.

Any suggestions are appreciated. This is a cool plugin and I’ve been waiting for something like this for ages. Thanks zem!

Last edited by andreas (2004-12-14 22:32:11)

Offline

#27 2004-12-14 23:06:24

zem
Developer Emeritus
From: Melbourne, Australia
Registered: 2004-04-08
Posts: 2,579

Re: [plugin] [ORPHAN] zem_rewrite: configurable clean URLs

Did you install the Rewrite stuff in .htaccess?


Alex

Offline

#28 2004-12-15 04:29:52

babeskidoodle
New Member
Registered: 2004-11-22
Posts: 4
Website

Re: [plugin] [ORPHAN] zem_rewrite: configurable clean URLs

I’ve got this installed and working great except for categories. how do I replace the txp:category_list?

also should I convert from zem_link to zem_permlink? zem_link seems to work find but just thought I’d check.

thanks

Last edited by babeskidoodle (2004-12-15 04:30:12)


charlie

Offline

#29 2004-12-15 11:05:05

andreas
Member
Registered: 2004-02-28
Posts: 453
Website

Re: [plugin] [ORPHAN] zem_rewrite: configurable clean URLs

zem, I did replace my .htaccess entries with the code that comes with the plugin.

Offline

#30 2004-12-15 12:16:10

zem
Developer Emeritus
From: Melbourne, Australia
Registered: 2004-04-08
Posts: 2,579

Re: [plugin] [ORPHAN] zem_rewrite: configurable clean URLs

Andreas,

It looks like the rewriterules are being ignored for some reason. It’s possible the subdomain has something to do with it. Is your subdomain set up as a subdirectory in your main site’s document root? Is there a .htaccess file for your main site as well as for the subdomain?


Alex

Offline

#31 2004-12-15 13:01:30

Destry
Member
From: Haut-Rhin
Registered: 2004-08-04
Posts: 4,909
Website

Re: [plugin] [ORPHAN] zem_rewrite: configurable clean URLs

Hi zem. I’m finally getting around to your plugin. (All roads lead to zem’s house.) I have a real stoooooooooooooopid question…

When I add your Rewrite rules to the .htaccess file, do I clear out all the other content in that file in the process (i.e., all the content in there from the TxP install)? If not, what do I keep?

(Wouldn’t hurt to add a comment about this in your instructions for non-devs like me. Just a thought.)

Offline

#32 2004-12-15 17:50:14

andreas
Member
Registered: 2004-02-28
Posts: 453
Website

Re: [plugin] [ORPHAN] zem_rewrite: configurable clean URLs

Zem,

my (subdomain) site is in a subdirectory of my html directory so it is on the same level as the maindomain site and there is no extra .htaccess file.

Offline

#33 2004-12-15 18:24:44

e-sven
Archived Plugin Author
From: Berlin, Germany
Registered: 2004-11-12
Posts: 17
Website

Re: [plugin] [ORPHAN] zem_rewrite: configurable clean URLs

It would be really great to have urls like:

/section/parent_category/child_category/title

Or is this already possible? Another thing is, that it is still impossible to create urls without id’s.


Sven
<bc />

Offline

#34 2004-12-15 18:30:09

andreas
Member
Registered: 2004-02-28
Posts: 453
Website

Re: [plugin] [ORPHAN] zem_rewrite: configurable clean URLs

With zem’s plugin URLs without IDs are possible. Just delet /{article}/ from the plugin configuration code.

Offline

#35 2004-12-15 21:02:39

zem
Developer Emeritus
From: Melbourne, Australia
Registered: 2004-04-08
Posts: 2,579

Re: [plugin] [ORPHAN] zem_rewrite: configurable clean URLs

It doesn’t yet do nested parent/child categories, but it’s a possibility for the future.


Alex

Offline

#36 2004-12-15 21:06:17

zem
Developer Emeritus
From: Melbourne, Australia
Registered: 2004-04-08
Posts: 2,579

Re: [plugin] [ORPHAN] zem_rewrite: configurable clean URLs

Andreas,

So the only .htaccess file is in the subdomain directory? Is there anything in it other than the rewriterules?

Can you confirm that a trivial redirect works, i.e:

RewriteEngine on
RewriteRule asdfasdf http://example.com/ [R,L]

..and fetch http://yourdomain.com/asdfasdf


Alex

Offline

Board footer

Powered by FluxBB