Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2009-10-23 06:41:47

tye
Member
From: Pottsville, NSW
Registered: 2005-07-06
Posts: 859
Website

Textpattern controlling subdirectories

I’ve come across this before, and was sure I found a fix, but I can’t re-find it when searching.

I have txp installed in the domain root; domain.com; and a shopping cart script installed in a sub-directory.

When I try to access the sub-directory; domain.com/store; I get a txp error page.

Both have htaccess files.

This is from the store:

DirectoryIndex home.php index.php index.html index.htm

# Show default error document for 404 errors caused by opening of image/media files.
<Files ~ "\.(gif|jpe?g|png|js|css|swf|ico)$">
	ErrorDocument 404 default
</Files>

ErrorDocument 401 default


And this is from my txp install
RewriteEngine On

RewriteCond %{HTTP_HOST} ^semannslattery\.com\.au$ [NC]
RewriteRule ^(.*)$ http://semannslattery.com/$1 [R=301,L]

#DirectoryIndex index.php index.html

#Options +FollowSymLinks
#Options -Indexes

<IfModule mod_rewrite.c>
	RewriteEngine On
	#RewriteBase /relative/web/path/

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

	RewriteCond %{REQUEST_URI} !=/favicon.ico
	RewriteRule ^(.*) index.php

	RewriteCond %{HTTP:Authorization}  !^$
	RewriteRule .* - [E=REMOTE_USER:%{HTTP:Authorization}]
</IfModule>

#php_value register_globals 0


<Files 403.shtml>
order allow,deny
allow from all
</Files>

deny from 72.55.140.24




Any ideas?

Offline

#2 2009-10-23 06:47:30

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,091
Website GitHub Mastodon Twitter

Re: Textpattern controlling subdirectories

domain.com/store

Should be domain.com/store/


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#3 2009-10-23 06:49:18

tye
Member
From: Pottsville, NSW
Registered: 2005-07-06
Posts: 859
Website

Re: Textpattern controlling subdirectories

Sorry – that was me being a lazy typer :)

I am actually trying to access a specific file:

domain.com/store/install.php

and I still get the txp error page :(

Offline

#4 2009-10-23 06:52:48

tye
Member
From: Pottsville, NSW
Registered: 2005-07-06
Posts: 859
Website

Re: Textpattern controlling subdirectories

I’ve got these disabled on my host:

The following PHP functions (which may be necessary to run Textpattern) are disabled on your server: pcntl_exec, symlink, proc_close

Offline

#5 2009-10-23 15:07:53

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

Re: Textpattern controlling subdirectories

I assume you’ve checked that you don’t have a Txp section named ‘store’?

Offline

#6 2009-10-26 00:39:26

tye
Member
From: Pottsville, NSW
Registered: 2005-07-06
Posts: 859
Website

Re: Textpattern controlling subdirectories

Ah – I figured it out :)

The shopping cart specified 777 permissions for the directory in which it was installed… – but my server doesn’t allow that and wasn’t giving access – so the error was handled by txp… phew

Offline

Board footer

Powered by FluxBB