Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-07-18 08:53:10

Lolly
New Member
Registered: 2005-02-04
Posts: 8

Clean URLS=yes, Stylesheet=no

I FINALLY got my clean URL’s to work when I put this code into my .htaccess:

<small>RewriteEngine On # Passthrough for existing files and directories<BR> RewriteCond %\{REQUEST_FILENAME\} -f [OR]<BR> RewriteCond %\{REQUEST_FILENAME\} -d<BR> RewriteRule ^(.+) – [PT,L]<BR><BR>

# Everything else should go through Textpattern<BR> RewriteRule (.*) index.php</small><BR><BR>

but then my stylesheets don’t work and my textpattern admin page (<a href=“http://www.bananabu.com/textpattern/”>click here</a>) gets a 404 error. take a look at <a href=“http://www.bananabu.com”>my bland site</a>. also if this helps any… before I editted my .htaccess file, i’m pretty sure Textpattern generated this original code into it:

<small>{\rtf1\mac\ansicpg10000\cocoartf102
{\fonttbl\f0\fswiss\fcharset77 Helvetica;}
{\colortbl;\red255\green255\blue255;}
\margl1440\margr1440\vieww9000\viewh9000\viewkind0
\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\ql\qnatural
\cf0 \
\
\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\ql\qnatural

\f0\fs24 \cf0 RewriteEngine On\<BR> # Passthrough for existing files and directories\<BR> RewriteCond %\{REQUEST_FILENAME\} -f [OR]\<BR> RewriteCond %\{REQUEST_FILENAME\} -d\<BR> RewriteRule ^(.+) – [PT,L]\<BR><BR>
\ # Everything else should go through Textpattern\<BR> RewriteRule (.*) index.php\<BR>
}</small><BR><BR>

if someone can offer some tips or suggestions, i would be very grateful. XD

Last edited by Lolly (2006-07-18 09:07:12)

Offline

#2 2006-07-18 09:07:17

zem
Developer Emeritus
From: Melbourne, Australia
Registered: 2004-04-08
Posts: 2,579

Re: Clean URLS=yes, Stylesheet=no

Your .htaccess file is not working correctly. This URL should produce CSS. It doesn’t.

The most likely cause is your server’s configuration.

The FAQ points to several helpful resources. It also gives a solution that will always work: turn off clean URLs.


Alex

Offline

#3 2006-07-18 09:12:42

Lolly
New Member
Registered: 2005-02-04
Posts: 8

Re: Clean URLS=yes, Stylesheet=no

even though my .htaccess file is not working correctly <i>right now</i> with the current code… do you think clean URL’s can still work on my site or should I have someone from my hosting company fix my .htaccess?

Offline

#4 2006-07-18 10:15:21

Sencer
Archived Developer
From: cgn, de
Registered: 2004-03-23
Posts: 1,803
Website

Re: Clean URLS=yes, Stylesheet=no

Please, try the original .htacces file from the distribution.

Lolly wrote:

<small>{\rtf1\mac\ansicpg10000\cocoartf102
{\fonttbl\f0\fswiss\fcharset77 Helvetica;}
{\colortbl;\red255\green255\blue255;}
\margl1440\margr1440\vieww9000\viewh9000\viewkind0
\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\ql\qnatural
\cf0 \
\
\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\ql\qnatural

\f0\fs24 \cf0 RewriteEngine On\<BR> # Passthrough for existing files and directories\<BR> RewriteCond %\{REQUEST_FILENAME\} -f [OR]\<BR> RewriteCond %\{REQUEST_FILENAME\} -d\<BR> RewriteRule ^(.+) – [PT,L]\<BR><BR>
\ # Everything else should go through Textpattern\<BR> RewriteRule (.*) index.php\<BR>
}</small><BR><BR>

That is a very clear indication that the .htaccess file was opened with a text-editor (like word, or another office package) and saved in in the richt-text format (.rtf). Which of course cannot possibly work.

Textpattern does not and cannot edit the contents of .htaccess by the way.

Last edited by Sencer (2006-07-18 10:16:57)

Offline

Board footer

Powered by FluxBB