Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#133 2005-01-29 09:13:40

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

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

Did you modify the plugin code like it is suggested at the top of the code view? I.e. did you create your own URL scheme?

Another possible problem: did you delete the old placeholder files from the root directory? They have to be gone for the plugin to work.

Last edited by andreas (2005-01-29 09:14:22)

Offline

#134 2005-01-29 13:17:16

arpan
Member
Registered: 2004-12-02
Posts: 25

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

I have only the following text in the .htacess file. it’s in the main folder of the txp site

RewriteEngine On
  1. Passthrough for existing files and directories
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^(.+) – [PT,L]
  1. Everything else should go through Textpattern
    RewriteRule (.*) index.php

> Did you modify the plugin code like it is suggested at the top of the code view?
> I.e. did you create your own URL scheme?

I did not modify the plugin code. I didn’t think that anything needed to be changed.

>did you delete the old placeholder files from the root directory?

I’m working with a new install of TXP. I made sure that everything was working, and then I made tried installing this plugin. the version is 1.0RC1

Offline

#135 2005-01-29 15:05:36

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

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

Sorry, arpan, all that I can think of we’ve checked. I can’t say what else might cause the problem.

Did you create sections and categories?

Offline

#136 2005-01-29 15:36:53

arpan
Member
Registered: 2004-12-02
Posts: 25

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

I have set up a basic install on a server.

Installed the zem_rewrite plugin, copied the .htacess file, and set the url to clean mode.

It’s located at: http://www.arkfam.org/txp/

the admin page is located at: http://www.arkfam.org/txp/textpattern/

login: test
password: textpattern

Perhaps you can tell me what’s wrong.

I have no idea what else to do.

Thanks for your help.

Offline

#137 2005-01-29 15:46:25

Jeremie
Member
From: Provence, France
Registered: 2004-08-11
Posts: 1,578
Website

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

Arpan, have you modified the rewrites rules to take your /txp/ path into account ?

Try these (one at a time) for the last rule :

RewriteRule (.*) txp/index.php
RewriteRule (.*) /txp/index.php

On my host, I need the last one, but it depends on your host settings.

If it doesn’t work, try look at / (just upper Textpattern) and delete (just for testing) any .htaccess file that might be here.

Offline

#138 2005-01-29 16:24:38

arpan
Member
Registered: 2004-12-02
Posts: 25

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

> Arpan, have you modified the rewrites rules to take your /txp/ path into account ?

>Try these (one at a time) for the last rule :

>RewriteRule (.*) txp/index.php
>RewriteRule (.*) /txp/index.php

When I either of those, even the index page does not load, and I get the following error:

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, webmaster@arkfam.org and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Apache/1.3.33 Server at www.arkfam.org Port 80

—————
If it doesn’t work, try look at / (just upper Textpattern) and delete (just for testing) any .htaccess file that might be here.

I have deleted the other .htacess files. No difference. (note: those files were blank)

__

I am sure that I must be doing something wrong, but I’m just able to figure it out.

Thanks for taking the time to help me out. I really appreciate it.

Offline

#139 2005-01-29 16:30:23

arpan
Member
Registered: 2004-12-02
Posts: 25

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

Hey, ignore the previous post. It’s working now. I think it just took some time for the server to use the updated .htacess file.

Thanks for your help everyone. I really really appreciate it.

Offline

#140 2005-01-29 17:11:24

Jeremie
Member
From: Provence, France
Registered: 2004-08-11
Posts: 1,578
Website

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

No trouble, the forums are here to help each other. For the record, which rule did work for you ?

Offline

#141 2005-01-29 17:13:39

mwjames
New Member
From: Memphis, TN USA
Registered: 2004-05-29
Posts: 2
Website

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

I was writing what I think is the reason zem_rewrite doesn’t work in off-the-shelf MAMPMAMP v1.0a3 (12-29-2004) doesn’t include an Apache2 mod_rewrite module — as I’d written up <a href=“http://maikimo.net/weblog/2005/01/local-txp-devel-in-mamp”>here</a>, when I see arpan write —

<blockquote>Hey, ignore the previous post. It’s working now. I think it just took some time for the server to use the updated .htacess file.</blockquote>

If it’s working as is, then I don’t know what I’m talking about. :-)

Last edited by mwjames (2005-01-29 17:16:13)

Offline

#142 2005-01-30 09:10:01

arpan
Member
Registered: 2004-12-02
Posts: 25

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

> mwjames wrote:

> I was writing what I think is the reason zem_rewrite doesn’t work in off-the-shelf MAMPMAMP v1.0a3 (12-29-2004) doesn’t include an Apache2 mod_rewrite module — as I’d written up <a href=“http://maikimo.net/weblog/2005/01/local-txp-devel-in-mamp”>here</a>, when I see arpan write —

<blockquote>Hey, ignore the previous post. It’s working now. I think it just took some time for the server to use the updated .htacess file.</blockquote>

>If it’s working as is, then I don’t know what I’m talking about. :-)

Um.., you do know what you’re talking about. It’s not working on MAMP on my computer on which I’m working on the website. But it is working on the web host’s server.

Since it’s working on that, I decided to just work on the website for now, and then worry about setting up clean urls later when i upload it to the server.

Offline

#143 2005-01-30 15:11:43

Etz Haim
Archived Plugin Author
From: Karlstad, Sweden
Registered: 2005-01-24
Posts: 262
Website

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

Re returning a 404 error status, the anc_header plugin might be of some help to you. I’ve also made a feature request for support for custom 404 error pages

Offline

#144 2005-02-02 08:37:22

Tobias Bergius
New Member
Registered: 2005-01-25
Posts: 2

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

Can’t seem to get this thing to work.
I’ve got RC2 in the www-root and have removed all the placeholder files.
My .htaccess file (in the root) looks like this:

DefaultType application/x-httpd-php
Options +Multiviews

<FilesMatch “^([^\.]+)$”>
ForceType application/x-httpd-php
</FilesMatch>

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^(.+) – [PT,L]

RewriteRule (.*) index.php

500 Internal Server Error. :(

Anyone know what the problem might be?

Last edited by Tobias Bergius (2006-07-18 04:00:09)

Offline

Board footer

Powered by FluxBB