Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2005-12-19 15:10:54

-M&N-
New Member
Registered: 2005-12-17
Posts: 5

Problem with Permanent link mode

I have a problem with Permanent link mode. I had set it to /section/name (/rubrika/název – i have Czech version of TP) and the link in comments_invite don’t work properly – it returns 404. I have tried to change .htaccess with adding

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

Still 404 so i added a file with name of category at web root directory containing following:

<?php
include "./textpattern/config.php";
$s = "XYZ";
include $txpcfg["txpath"]."/publish.php";
textpattern();
?>

Then the error was http://textpattern.com/faq/126/error-publishphp-cannot-be-called-directly , so i removed it and don’t know what to do now.

My pages are on the hosting where is safe_mod on, I must set CHMOD manualy, scripts can not and this is TP diagnostic:

Textpattern version: 4.0.2 (r1076)
last_update: 2005-12-18 12:46:49/2005-12-17 15:44:56
Document root: /htdocs ()
$path_to_site: /srv1/www/nfsgame.net/subdomains/underground2
Textpattern path: /srv1/www/nfsgame.net/subdomains/underground2/textpattern
Permanent link mode: section_title
open_basedir: /home/www/nfsgame.net:/usr/local/lib/php
upload_tmp_dir: /home/www/nfsgame.net/tmp
Temp folder: /srv1/www/nfsgame.net/subdomains/underground2/textpattern/tmp
Site URL: underground2.nfsgame.net
PHP version: 4.3.10-banan16
server_time: 2005-12-19 16:09:52
MySQL: 4.1.11-Debian_5-log
Locale: cs_CZ.UTF-8
Server: Apache/2.0.54 (Debian GNU/Linux) PHP/4.3.10-banan16 mod_ssl/2.0.54 OpenSSL/0.9.7e
Apache version: Apache/2.0.54 (Debian GNU/Linux) PHP/4.3.10-banan16 mod_ssl/2.0.54 OpenSSL/0.9.7e

.htaccess file contents:
------------------------
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
#</IfModule>

php_value register_globals 0

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

Help pls (and sry for my English)

Last edited by -M&N- (2005-12-19 15:28:53)

Offline

#2 2005-12-19 21:08:38

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: Problem with Permanent link mode

Both methods would/should not work. FAQ

Offline

#3 2005-12-19 22:51:12

-M&N-
New Member
Registered: 2005-12-17
Posts: 5

Re: Problem with Permanent link mode

I apologize for my question, but i tried to find it in FAQ – i have found only diferent problem :(
So it’s solved know, I just added to .htaccess a few lines (taken form forum thread linked from FAQ :):

RewriteEngine On
RewriteBase /

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

RewriteRule ^(.*) index.php

Offline

Board footer

Powered by FluxBB