Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#21 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
#22 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
#23 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
#24 2006-03-18 19:33:38
- lornajane
- New Member
- Registered: 2006-03-18
- Posts: 5
Re: Post your Clean URL .htaccess tweaks here
I have been going round in circles with the rewrite rules on a new 4.0.3 textpattern installation all afternoon. I don’t want to use sections on my site, as its only a demo of textpattern itself … however if articles are not in sections the rewrite rules fail!
I hope this saves someone the time I just spent wandering through the code debugging.
Offline
#25 2006-03-30 07:05:04
- roehmholdt
- New Member
- From: Bellingham, WA
- Registered: 2006-03-30
- Posts: 2
- Website
Re: Post your Clean URL .htaccess tweaks here
Does anyone know the way to get clean URLs with Netfirms hosting? I’ve been looking all over and so far nothing. :(
Offline
#26 2006-03-30 18:17:22
- thomasarie
- Member
- From: Indonesia, South East Asia
- Registered: 2006-01-24
- Posts: 14
- Website
Re: Post your Clean URL .htaccess tweaks here
This is what I have in the “diagnostics” tab:
<code>Textpattern version: 4.0.3 (r1188)
last_update: 2006-01-22 07:55:13/2006-01-24 06:45:16
Document root: /home/******/public_html
$path_to_site: /home/******/public_html
Textpattern path: /home/******/public_html/textpattern-folder
Permanent link mode: section_title
Temp folder: /home/******/public_html/textpattern-folder/tmp
Site URL: orangescale.net
PHP version: 4.4.1
Register globals: 1
Server time: 2006-03-30 12:55:49
MySQL: 4.1.14-standard
Locale: English_United Kingdom.1252
Server: Apache/1.3.34 (Unix) mod_fastcgi/2.4.2 mod_gzip/1.3.26.1a mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 FrontPage/5.0.2.2635 mod_ssl/2.8.25 OpenSSL/0.9.7a PHP-CGI/0.1b
PHP mode: cgi
Operating System: Linux 2.6.9-22.0.1.ELsmp
.htaccess file contents:
————————————
#DirectoryIndex index.php index.html
#Options +FollowSymLinks
RewriteBase /
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^(.+) – [PT,L]
#This path should match the relative url of your Textpattern install
RewriteBase /
RewriteRule ^(.*) index.php
</IfModule>
#php_value register_globals 0
———————————— </code>
Orangescale.NET – Personal Journal using Textpattern
Orangescale.COM – Design, portfolio, pick-and-go, and more
Offline
#27 2006-03-30 18:22:31
- mrdale
- Moderator
- From: Walla Walla
- Registered: 2004-11-19
- Posts: 2,203
- Website
Re: Post your Clean URL .htaccess tweaks here
OSX 10.4 Clean Urls
Does anyone have a step-by-step on how to take a stock Tiger (OSX 10.4) install and get clean urls working? I having a devil of a time, and yes I’ve searched the forums and tried many of the sollutions here and TXD forums.
Offline
#28 2006-05-16 15:29:03
- -P-
- Member
- From: Finland
- Registered: 2005-09-10
- Posts: 211
Re: Post your Clean URL .htaccess tweaks here
Okay, first time problems with clean urls here too.
<code>Textpatternin versio: 4.0.3 (r1188)
last_update: 2006-05-16 12:11:34/2006-05-15 13:17:51
Dokumenttien juurihakemisto: /home/domainname/www (/usr/home/domainname/www)
$path_to_site: /usr/home/domainname/www/uusi
Polku Textpatterniin: /usr/home/domainname/www/uusi/textpattern
Kestolinkin muoto: title_only
Temp-hakemisto: /var/tmp
Sivuston URL: www.domain.com/uusi
PHP:n versio: 4.4.1
Register globals: 1
server_time: 2006-05-16 17:52:15
MySQL: 4.1.15
Locale: fi_FI.UTF-8
Palvelin: Apache/2
Apachen versio: Apache/2
php_sapi_mode: apache2handler
os_version: FreeBSD 5.4-RELEASE-p6
.htaccess sisältö:
————————————
#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</code>
Usually I host TXP installations on my own server and havent had any prob. Messy urls seem to work on this other server but I really need clean urls. I have not much experience with .htaccess rules, tested few solutions posted in this thread but was not able to get them to work.
So is there something I can do or are the settings needed host dependant?
Site is going to stay during development in subfolder /uusi/ but eventually when everything is set it will be moved to root www.domain.com
Tested ones from the faq also but did not help
<code>.htaccess sisältö:
————————————
#DirectoryIndex index.php index.html
Options +FollowSymLinks
RewriteBase /uusi/
<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
————————————</code>
Offline
#29 2006-05-16 15:48:10
- rloaderro
- Plugin Author
- From: Costa Rica
- Registered: 2006-01-05
- Posts: 190
- Website
Re: Post your Clean URL .htaccess tweaks here
mrdale wrote:
OSX 10.4 Clean Urls
Does anyone have a step-by-step on how to take a stock Tiger (OSX 10.4) install and get clean urls working? I having a devil of a time, and yes I’ve searched the forums and tried many of the sollutions here and TXD forums.
I’m sure you’ve probably figured this out by now, but in case anyone else has this problem:
1. Locate your configuration file for Apache – not httpd.conf – it should be in /etc/httpd/users – named something like yourusername.conf
2. In your trusty text editor change the line that begins AllowOverride
to AllowOverride All
3. In the same trusty text editor open the .htaccess file included with Textpattern.
4. Uncomment the first 3 lines (remove the #
symbol) and change the third line to represent the path to your site, for example: RewriteBase /~yourusername
That has worked for me on a couple of 10.4 Macs. Of course to get the full functionality of Textpattern working on OSX you have to recompile PHP with the GD libraries, but I’ll leave that for another day :)
Travel Atlas * Org | Start Somewhere
Offline