Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2009-01-09 17:20:33

markox
New Member
Registered: 2008-04-08
Posts: 5

Clean URLs - CSS and images not appearing

Hi, I have completed my first Textpattern site and want to use clean urls now I have uploaded it to the host. When I switch over the homepage looks fine but when I go to another page I have the content but no CSS styling. I am linking to my stylesheets at the root of my site in a css folder. All works fine with urls set to ?messy.
What do I need to change to get things working?

Many thanks

Offline

#2 2009-01-09 17:24:13

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

Re: Clean URLs - CSS and images not appearing

Hi markox

Some more info will be needed

  • Who is your host?
  • can you provide us with a url?
  • diagnostics

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-01-09 17:30:58

markox
New Member
Registered: 2008-04-08
Posts: 5

Re: Clean URLs - CSS and images not appearing

Thanks for your help.

url is: http://www.askvera.org/

Host I don’t know, I have been passed some ftp details.

diagnostics as follows:

Textpattern version: 4.0.6 (r2805)
Last Update: 2008-11-03 16:27:40/2008-11-05 14:08:45
Document root: /var/www/html
$path_to_site: /var/www/html
Textpattern path: /var/www/html/textpattern
Permanent link mode: section_title
Temporary directory path: /var/www/html/textpattern/tmp
Site URL: www.askvera.org
PHP version: 5.1.6
GD Image Library: bundled (2.0.28 compatible); supported formats: GIF, JPG, PNG.
Server Local Time: 2009-01-09 17:29:41
MySQL: 5.0.45
Locale: en_GB.UTF-8
Server: Apache
PHP Server API: cgi-fcgi
RFC 2616 headers:
Server OS: Linux 2.6.18-92.1.22.el5
Active plugins: Postmaster Library-0.2.3, hak_tinymce-0.7.4, adi_menu-0.6, zem_contact_lang-4.0.3.6, pap_contact_cleaner-0.1, Postmaster-0.4.4, zem_contact_reborn-4.0.3.20

Pre-flight check:
————————————
Some Textpattern files have been modified: /lib/txplib_head.php
————————————

.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

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

#php_value register_globals 0

————————————

Offline

#4 2009-01-09 18:03:29

MattD
Plugin Author
From: Monterey, California
Registered: 2008-03-21
Posts: 1,254
Website

Re: Clean URLs - CSS and images not appearing

You can’t use relative paths since when you are at http://www.askvera.org/DDA/ you’re css is not in the same directory. You can use txp:site_url to fix these.

For example your css
Change <link rel="stylesheet" href="css/standard.css" type="text/css" />
to <link rel="stylesheet" href="<txp:site_url/>css/standard.css" type="text/css" />
which will output <link rel="stylesheet" href="http://www.askvera.org/css/standard.css" type="text/css" />


My Plugins

Piwik Dashboard, Google Analytics Dashboard, Minibar, Article Image Colorpicker, Admin Datepicker, Admin Google Map, Admin Colorpicker

Offline

#5 2009-01-09 18:05:02

markox
New Member
Registered: 2008-04-08
Posts: 5

Re: Clean URLs - CSS and images not appearing

Thanks MattD, I knew it would be something simple!

Offline

Board footer

Powered by FluxBB