Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2007-07-25 18:42:33
- kiraly
- New Member
- Registered: 2007-07-24
- Posts: 2
Trailing slash causing page layout to change / break
I have a problem with my textpattern pages in that when they are viewed with a trailing slash at the end of the URL the page does not display properly. If you remove the trailing slash then it looks right. Please see below:
Broken display:
http://www.beecroftphoto.com/mainsite/services/
Correct display:
http://www.beecroftphoto.com/mainsite/services
I have searched the forums but have not seen a solution to this. I am using a plain install (no mods) with the zem_contact_reborn and lang plugins only. Debugging is turned on for a tag trace.
The tag: <txp:article_custom form="v3-article_body" id="3" pgonly="0" section="services" status="4" />
places a trailing slash which then breaks my page. Any advice? What did I do wrong?
Here is my diagnostics info:
—-
Textpattern version: 4.0.5 (r2466)
Last Update: 2007-07-21 19:36:25/2007-07-22 00:51:19
Document root: /data/httpd/vhosts/beecroftphoto.com/httpdocs
$path_to_site: /data/httpd/vhosts/beecroftphoto.com/httpdocs/mainsite
Textpattern path: /data/httpd/vhosts/beecroftphoto.com/httpdocs/mainsite/textpattern
Permanent link mode: section_title
open_basedir: /data/httpd/vhosts/beecroftphoto.com/httpdocs:/tmp
Temporary directory path: tmp
Site URL: www.beecroftphoto.com/mainsite
PHP version: 4.3.2
GD Image Library: version bundled (2.0.12 compatible), supported formats: JPG, PNG
Server Local Time: 2007-07-25 09:34:59
MySQL: 3.23.58
Locale: en_US.UTF-8
Server: Apache/2.0.40 (Red Hat Linux)
PHP Server API: apache2filter
RFC 2616 headers:
Server OS: Linux 2.4.20-31.9
Active plugins: zem_contact_reborn-4.0.3.19m, zem_contact_lang-4.0.3.6
.htaccess file contents:
————————————
#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]
RewriteRule ^(.*) index.php
</IfModule>
#php_value register_globals 0
————————————
Offline
#2 2007-07-25 20:46:22
- els
- Moderator

- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Trailing slash causing page layout to change / break
I think it’s the link to your stylesheet. You’d better add the full path if you don’t want to use txp:css /.
Offline
#3 2007-07-25 21:11:44
- kiraly
- New Member
- Registered: 2007-07-24
- Posts: 2
Re: Trailing slash causing page layout to change / break
Els,
That did it. I had to change all references to my .CSS, .JS, etc files from relative to absolute. Interesting. thanks for your help.
Offline