Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#13 2005-09-25 07:35:49

ubernostrum
Member
From: Lawrence, KS
Registered: 2004-05-05
Posts: 238
Website

Re: Post your Clean URL .htaccess tweaks here

Just helped someone hosted at TextDrive with this one:

If you’re setting up Textpattern in a folder under your main ‘web’ or ‘public_html’ directory (which one you have depends on which server you’re on at TXD), and you want to access it as a subdomain (since TXD will map folders to subdomains for you), you need to add this in the .htaccess of the main domain:

RewriteEngine On
RewriteCond %{HTTP_HOST} ^your.sub.domain$ [NC]
RewriteRule ^(.*) subdomainfolder/index.php

After that, it works like a charm.


You cooin’ with my bird?

Offline

#14 2005-10-02 15:17:36

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

Re: Post your Clean URL .htaccess tweaks here

> on hosteurope server.

.htaccess is a “feature” that is only supported for webpack L and larger at hosteurope (at least in germany). If you have a smaller webpack (like M) you can’t use .htaccess and thus currently can only use messy urls.

btw: This thread is meant for posting solutions, so that people can quickly scan for answers, rather than having to read through troubleshootings, questions, comments etc.

Offline

#15 2005-10-25 21:46:23

SamuelJohn
New Member
Registered: 2005-06-01
Posts: 8

Re: Post your Clean URL .htaccess tweaks here

I use a german provider (www.domainbox.de) and even phpinfo(); told me that mod_rewrite was ON, I always got 403 Errors when accessing any of my sites with the .htaccess. After writing an email to the support team, they activated mod_rewrite, and it is working with the .htacces fine now.

I just want to say, that phpinfo(); telling you mod_rewrite=on, might not mean that mod_rewrite is working properbly. The Apache was not configured to follow symlinks, the support wrote.

Now it’s woking fine.

Offline

#16 2005-10-26 02:13:53

jackson
Member
Registered: 2005-10-01
Posts: 14

Re: Post your Clean URL .htaccess tweaks here

This is not TXP specific, so hopefully it’s ok if I post it. I think it might be helpful to people in the future.

I was struggling with getting .htaccess working for TXP on my Debian Sarge box. The mod_rewrite module was loaded and everything seemed to be ok. Messy URL’s worked, but not clean.

After Googling for ages, I came across a comment at the bottom of this article at Debian Administration:

http://www.debian-administration.org/articles/136

The poster states that the problem is that the “AllowOverride” setting for the DocumentRoot directory as set forth in /etc/apache/httpd.conf should be changed from “None” to “All”. So, for example, that section of my httpd.conf file now looks like this:

=====
This should be changed to whatever you set DocumentRoot to.
{Directory /var/www}
This may also be “None”, “All”, or any combination of “Indexes”,
“Includes”, “FollowSymLinks”, “ExecCGI”, or “MultiViews”.
;
Note that “MultiViews” must be named explicitly —- “Options All”
doesn’t give it to you.
Options Indexes Includes FollowSymLinks MultiViews
This controls which options the .htaccess files in directories can
override. Can also be “All”, or any combination of “Options”, “FileInfo”,
“AuthConfig”, and “Limit”
AllowOverride All
Controls who can get stuff from this server.
;
Order allow,deny
Allow from all
{/Directory}
=====

(I changed the ‘#’ comment indicator to a ‘;’ since textile was parsing the ‘#’ as a numbered list and I also changed the <> brackets into {} since the former were being parsed as HTML).

Changing the AllowOverride from None to All fixed my problem and now clean URL’s work fine with the default TXP .htaccess. Hope this helps somebody.

Offline

#17 2005-10-30 23:44:06

xylpho
Member
From: Brest, France
Registered: 2005-10-24
Posts: 28

Re: Post your Clean URL .htaccess tweaks here

This controls which options the .htaccess files in directories can
override. Can also be “All”, or any combination of “Options”, “FileInfo”,
“AuthConfig”, and “Limit”
AllowOverride All

Changing this on my Mac (10.4.2) do the job. Great!!!


don’t eat yellow snow

Offline

#18 2006-01-15 23:28:42

animoller
Member
Registered: 2004-04-19
Posts: 22

Re: Post your Clean URL .htaccess tweaks here

I’m with a webserver at The Planet and I can get clean URLs to work, but not ALL of them. Is this the reason for this thread, or rather to get them to work at all?

Because I have the latest version of Textpattern installed and I can’t seem to get /year/month/day/title URL mode to work, but all the other clean URL modes work. Funny thing is, I have 4.0.1 installed on the same server using /year/month/day/title but that .htaccess file doesn’t work with 4.0.3. Argh!

Offline

#19 2006-01-31 21:55:27

Brutal
Member
Registered: 2005-01-28
Posts: 14

Re: Post your Clean URL .htaccess tweaks here

DirectoryIndex index.html index.php
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^(.+) – [PT,L]
RewriteRule ^(.*) index.php

How come this doesn’t work? I want the rewriteengine on, but I also want to be able to but a temporary index.html in my root to keep others from automatically accessing my index.php while I work on it..

Offline

#20 2006-03-05 20:10:58

blueprint
Member
From: Netherlands
Registered: 2006-03-05
Posts: 43
Website

Re: Post your Clean URL .htaccess tweaks here

Clean URL with Apach2Triad bundle voor local PC

Last week I downloaded Textpattern and tried to get it working on my PC.

I took some time for me to get clean URL’s working. I have the WAMP bundle Apache2Triad on my local XP machine (Apache, mySql, php and much more installed in one single installation; very usefull!!).

I had to modify the httpd.conf file; and changed the lines:
<Directory /> Options FollowSymLinks AllowOverride None
</Directory>

into:
<Directory /> Options FollowSymLinks AllowOverride All
</Directory

Then followed the suggestions in the faq, and voila, it worked.

Offline

Board footer

Powered by FluxBB