Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#73 2005-01-09 03:18:51

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

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

> Warning: Compilation failed: unrecognized character after (? at offset 3 in /path/to/my/textpattern/publish.php(767) : eval()’d code on line 75

Just paste the base64-encoded text into the plugin, i.e. the stuff between the quote marks.

The <?php $plugin='...' ?> part is for Textpattern versions prior to 1rc1.


Alex

Offline

#74 2005-01-09 03:24:17

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

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

Jjeff & Tmac,

The built in Textpattern tags and other plugins don’t know anything about the zem_rewrite URL schemes, so they’ll continue generating old URLs.

If you’re using the default URL scheme this doesn’t matter so much, because it’s identical to the old one. If you’ve configured your own scheme, you’ll need to use the link tags built into zem_rewrite.

You can also generate your own URLs by calling the zem_format_url() function in PHP. See the plugin source for details.


Alex

Offline

#75 2005-01-09 04:46:28

tmacwrig
Archived Plugin Author
Registered: 2004-03-06
Posts: 204
Website

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

Oh, I forgot to include the article id in the URL.. now it’s working. Thanks for the excellent plugin.

Offline

#76 2005-01-09 12:30:13

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

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

At the moment I have old-style URLs with IDs in them. I plan to use the plugin to get rid of the IDs, is there a way to collectively redirect calls to old-style URLs?

I.e. I don’t want to write a permanent redirect rule for each of my 60+ articles. Unfortunately, I don’t know regexps, which are probably a solution.

Any hints or solutions are greatly appreciated!

Thanks.

Offline

#77 2005-01-09 14:06:09

jjeff
Member
From: Massachusettes, USA
Registered: 2005-01-03
Posts: 11
Website

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

> jjeff wrote:

> Do I need to modify the templates in order to use zem_rewrite?

> I know that I need to change permalinks and stuff, but I thought I saw something somewhere about needing to add a line at the top of my templates. I can’t seem to find anything about that in the documentation though.

> If so, what is the line I need to add?

Hi Zem,

In this post you say to

Just plonk the tag at the top of your article page, and it’ll do the rest. It must be the very first tag on the page, before the doctype.

What is the tag that needs to be added? There doesn’t seem a subroutine in the plugin for a txp:zem_rewrite tag. And there’s nothing about this in the documentation.

-Jeff

Offline

#78 2005-01-09 22:56:49

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

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

Jeff,

Those instructions are for the zem_redirect plugin, not zem_rewrite.


Alex

Offline

#79 2005-01-10 00:20:08

jjeff
Member
From: Massachusettes, USA
Registered: 2005-01-03
Posts: 11
Website

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

Ha ha… You mean I need to read the ENTIRE words? :-)

Doh! Now everyone on the Internet is going to think I’m an idiot.

-j

Offline

#80 2005-01-10 14:49:46

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

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

zem, if I use your plugin, can there be other statements in the .htmaccess file like redirects?

Is there a regexp statement to redirect URLs like this one:

http://www.rete-mirabile.net/lernen/54/this-is-the-title

to this pattern:

http://www.rete-mirabile.net/lernen/this-is-the-title

? If so, how would the redirect rule look like?

Thanks.

Offline

#81 2005-01-10 17:13:04

lwray
Member
From: Allston, MA
Registered: 2004-12-02
Posts: 21
Website

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

zem -
I’ve been struggling to install this plugin for some hours now. I’ve tried putting the respective rewrite statements in the .htaccess file at my website root and, when that didn’t work, in the httpd.conf file. I’ve tried deleting the section placeholders and the .htaccess directives that come with the Textpattern clean URLs. The best I was able to get was an index page with every document redirecting to the index page. At worst, I disabled everything else on my webserver, including Textpattern.

Is it possible to get your plugin to do what I’d like? Basically, I want it to make my entries appear at

/journal/this-is-the-title
/journal/199/

I want these to also redirect to the first address:

/2004/12/this-is-the-title (from back when I used to use Blogger)
/journal/199/this-is-the-title

but I am willing to make rewrite rules to do that independent of your plugin.

All of my entries have url-titles, so according to your directions this should work. I’m left with the thought that perhaps something is wrong in my Apache configuration – should I have something in particular enabled that I might not?

Thanks a lot.

Last edited by lwray (2005-01-10 17:53:27)

Offline

#82 2005-01-10 17:50:59

TheEric
Plugin Author
From: Wyoming
Registered: 2004-09-17
Posts: 566

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

I noticed upon using this plugin that I had to edit taghandlers.php near the search_input form so that the built in search would work. (going from memory here) The edit was to remove the index.php at $scn’“index.php” . Without this edit, I kept receiving an error stating that index.phpq=searchTerm could not be found.

Offline

#83 2005-01-12 17:22:04

wilshire
Plugin Author
From: Akron, Ohio
Registered: 2004-08-27
Posts: 656
Website

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

The new version of this plugin (0.5) says that a new simple 404 handler has been added. Anyone know how to get this to work? I’m just getting a message that says “no page template specified for section xyz”.

Offline

#84 2005-01-13 21:49:09

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

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

There’s a new version available for download. No new features, but it fixes a few bugs.


Alex

Offline

Board footer

Powered by FluxBB