You are not logged in.
Pages: 1
Hi all
This might be obvious to many, if not all, but one thing I run into is the TXP .htaccess aggressively 404ing any access to real subdirectories in the root. For example, today I have been handed a site to build that has an old script in the cgi-bin directory. I can’t submit form output to the script without TXP leaping to the rescue with a 404 page, god love it.
What do I do to turn it’s head away at moments like these?
D
Offline
This is not the intended behaviour of Textpattern’s .htaccess rules. In contrary, Textpattern should not even run when “real” files or directories are requested.
One thing I have noticed with certain web server configurations is a bit more complex:
Try to add these directives to .htaccess to see if this applies to your situation:
ErrorDocument 401 "401 occurred."
ErrorDocument 404 "404 occurred."
ErrorDocument 403 "403 occurred."
ErrorDocument 500 "500 occurred."
Try wet_quicklink | Me | @rwetzlmayr | +Robert Wetzlmayr | Repos
Offline
Thank you, kind sir. That did the trick.
Offline
I am also having htaccess problems after upgrading to Mountain Lion (OSx 10.8). After it broke my local install, I managed to fix Apache and PHP and get access to my databases again via phpMyAdmin. However, I can only access my local install of Textpattern by removing my .htaccess file. With my .htaccess present it serves up a 403 ‘no permission on this server’ error. My local textpattern install is in ‘localhost/~myusername/txp/’ but other directories in my ‘localhost/~myusername/’ directory work fine (they have no .htaccess files!). I tried to add wet’s suggestion above but it didn’t work. Even trying to install Textpattern from scratch gives the same error. Has anyone else had this problem and if so, how did you fix it? Many thanks!
Offline
Pages: 1