Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
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
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
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
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
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