Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-01-30 13:07:48

rahul
New Member
Registered: 2006-01-04
Posts: 9

Textpattern, PHPList, DadaMail

Dear All:

I’ve been trying to install various newsletter managment services – DadaMail, PHPList on a site which is TxP-powered.

However, whenever I try to view the directory that I have installed things into, I get a 404.

For example, I’ve uploaded PHPList into:

/public_html/lists/

But, when I browse to it, using:

http://mentaid.in/lists/

I get a 404. I have changed the default error page to match my site – does that affect anything?

Thanks in advance for any tips,
Rahul.

Offline

#2 2006-01-30 17:24:22

alice_c
Plugin Author
From: Karlsruhe, Germany
Registered: 2004-07-03
Posts: 33

Re: Textpattern, PHPList, DadaMail

I didn’t had any problems with newsletter-scripts in txp, and i tested a few!

Please try to avoid to use dadamail, I found some strange things in the code (have a look at this page for example) and the bugreport I posted at SF was closed by the author in a few minutes.

But the best I tested was http://www.letterit.de/ (it’s from a german programmer, but backend is in multiple languages).

Did you test the txp newsletter plugin ?

Last edited by alice_c (2006-01-30 18:59:56)

Offline

#3 2006-01-30 18:30:21

mrdale
Member
From: Walla Walla
Registered: 2004-11-19
Posts: 2,215
Website

Re: Textpattern, PHPList, DadaMail

You will have to add a line to your .htaccess rules to tell textpattern not to control that url. Here’s how I did it for iCal.

<code> RewriteCond %{REQUEST_URI} !/ical</code>

just replace /ical with /lists and see if it works.

Hope that helps

Last edited by mrdale (2006-01-30 18:30:55)

Offline

#4 2006-01-30 18:43:46

hakjoon
Member
From: Arlington, VA
Registered: 2004-07-29
Posts: 1,634
Website

Re: Textpattern, PHPList, DadaMail

Does your rewrite rule have the default

RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d

That should keep TXP out of any existing files or folders. Although it can cause some issues if you have .htaccess password protection in any folders. The solution for that is in the faq

Although mrdale’s solution works too. It just shouldn’t be necessary.

Last edited by hakjoon (2006-01-30 18:44:55)


Shoving is the answer – pusher robot

Offline

#5 2006-01-31 02:22:17

rahul
New Member
Registered: 2006-01-04
Posts: 9

Re: Textpattern, PHPList, DadaMail

Hi:

None of the solutions seem to be working. Here is the contents of my .htaccess file:

<code>
#DirectoryIndex index.php index.html
#Options +FollowSymLinks
#RewriteBase /relative/web/path/

<IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d

RewriteRule ^(.+) – [PT,L] RewriteRule ^(.*) index.php RewriteCond %{REQUEST_URI} !/lists </IfModule>

#php_value register_globals 0
</code>

I have no experience with modifying this file, so please do tell me if there is something I should have changed.

Thanks for your replies,
Rahul.

Offline

#6 2006-01-31 03:21:26

hakjoon
Member
From: Arlington, VA
Registered: 2004-07-29
Posts: 1,634
Website

Re: Textpattern, PHPList, DadaMail

Throw the RewriteCond %{REQUEST_URI} !/lists before the RewriteRule ^(.*) index.php. So it would be.

<pre>
#DirectoryIndex index.php index.html

#Options +FollowSymLinks

#RewriteBase /relative/web/path/

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^(.+) – [PT,L]
RewriteCond %{REQUEST_URI} !/lists
RewriteRule ^(.*) index.php
</IfModule>

#php_value register_globals 0
</pre>

See if that works.

What that says is “If the URI doesn’t contain lists rewrite the request to index.php”

You could also try

<pre>
#DirectoryIndex index.php index.html

#Options +FollowSymLinks

#RewriteBase /relative/web/path/

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d [OR]
RewriteCond %{REQUEST_URI} /lists
RewriteRule ^(.+) – [PT,L]
RewriteRule ^(.*) index.php
</IfModule>

#php_value register_globals 0
</pre>

Which says “If the filename exists OR if the directory exists OR if the URI contains /lists just pass it through ortherwise rewrite it to index.php

See if either of those work.

Last edited by hakjoon (2006-01-31 03:22:04)


Shoving is the answer – pusher robot

Offline

#7 2006-01-31 10:16:06

rahul
New Member
Registered: 2006-01-04
Posts: 9

Re: Textpattern, PHPList, DadaMail

What am I doing wrong?

Let me give a more detailed description of the problem. I first installed TextPattern, then uploaded the PHPList programme.

Also, there are .htaccess files in the subdirectories as well. Do I have to change their contents?

For eg,

/public_html/.htacess is the file that I have been modifying.

Also, none of Hakjoons’ solutions are working :(. Thanks though :).

Any more suggestions?

Rahul.

Offline

#8 2006-01-31 14:15:56

hakjoon
Member
From: Arlington, VA
Registered: 2004-07-29
Posts: 1,634
Website

Re: Textpattern, PHPList, DadaMail

Check out this faq article on password protected directories and see if maybe it solves your issue.

I had problems with .htaccess files in subdirectories producing the same problem you are seeing and it solved it for me. It seems to be some type of server setting because I did not see this on a previous server but see it on a new one with the same TXP setup.

I only had to to set the 401 ErrorDocument and everything worked (I’ll probably run into a situation that will require the 403 errorDocument but I haven’t so far)

Hopefully I won’t go 0 for 3 :)

Last edited by hakjoon (2006-01-31 14:16:35)


Shoving is the answer – pusher robot

Offline

#9 2006-03-17 04:36:03

jeeves
Member
Registered: 2004-06-14
Posts: 31

Re: Textpattern, PHPList, DadaMail

I had a similar problem with 404 errors and my /lists/admin/ directory (phplist install). The post below completely solved the problem for me:

http://forum.textpattern.com/viewtopic.php?pid=91244#p91244

Offline

#10 2006-03-17 19:06:35

NyteOwl
Member
From: Nova Scotia, Canada
Registered: 2005-09-24
Posts: 539

Re: Textpattern, PHPList, DadaMail

Please try to avoid to use dadamail, I found some strange things in the code (have a look at this page for example) and the bugreport I posted at SF was closed by the author in a few minutes.

I get a black black page with a blank black iframe at the suggested link.


Obsolescence is just a lack of imagination. / 36-bits Forever! / #include <disclaimer.h>;

Offline

Board footer

Powered by FluxBB