Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#25 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

#26 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

#27 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

#28 2006-03-30 18:22:31

mrdale
Member
From: Walla Walla
Registered: 2004-11-19
Posts: 2,215
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

#29 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

#30 2006-05-16 15:48:10

rloaderro
Archived 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

#31 2006-05-30 09:03:05

Captain Flint
New Member
Registered: 2006-05-30
Posts: 2

Re: Post your Clean URL .htaccess tweaks here

Hosting : http://dhost.info.
Site form: http://dhost.info/myusername/

Textpattern version: 4.0.3
last_update: 2006-05-29 08:40:45/2006-05-29 08:20:14
Document root: /usr/local/apache2/htdocs
$path_to_site: /usr/local/apache2/htdocs/myusername/txp
Textpattern path: /usr/local/apache2/htdocs/myusername/txp/textpattern
Permanent link mode: section_id_title
open_basedir: /usr/local/apache2/htdocs/
Site URL: dhost.info/myusername/txp
PHP version: 4.4.2
MySQL: 4.0.26-standard
Locale: en_US.UTF-8
Server: Apache/2.2.2 (Unix)
Apache version: Apache/2.2.2 (Unix)
php_sapi_mode: apache2handler

.htaccess file contents:<br>
————————————<br>
DirectoryIndex index.php index.html
Options +FollowSymLinks
RewriteBase /myusername/txp/<br>
IfModule mod_rewrite.c <br> RewriteEngine On<br> RewriteCond %{REQUEST_FILENAME} -f [OR]<br> RewriteCond %{REQUEST_FILENAME} -d<br> RewriteRule ^(.+) – [PT,L]<br> RewriteRule ^(.*) index.php<br>
/IfModule<br>
<br>
#php_value register_globals 0<br>
————————————<br>

Clean URL’s don’t work. What is wrong?

Last edited by Captain Flint (2006-05-30 09:10:38)

Offline

#32 2006-05-30 10:02:13

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

Re: Post your Clean URL .htaccess tweaks here

What is wrong?

No one will see or answer this question, because you are in the wrong topic. This one is for posting solutions, not questions.

Offline

#33 2006-05-30 10:13:07

Captain Flint
New Member
Registered: 2006-05-30
Posts: 2

Re: Post your Clean URL .htaccess tweaks here

Ok. Sorry.

Offline

#34 2006-07-04 11:06:36

Timid&friendly
Member
From: The Netherlands
Registered: 2006-05-28
Posts: 252
Website

Re: Post your Clean URL .htaccess tweaks here

I am using Namezero.com to host my websites. Dotster.com is the same company. You get the same technical support team for both.

I had problems with the .htaccess file not working correctly. Not setting globals to 0 and not allowing clean URLs. In my Admin/diagnosis/ section, everything looked ok, no errors or alerts, but it still wouldn’t allow clean URL’s

The problem was that i was uploading the .htaccess file using an ftp program that changed the file line endings to MAC and they should have been UNIX. i’ve enclosed a pic to show you what i mean.

Now it works great! I use the standard settup, nothing is changed except the # is removed from the beginning of the lines, as is suggested in the FAQ on this subject.

Last edited by Timid&friendly (2006-07-04 11:19:33)


I think, therefore I AM, … … er … I think :-?

Offline

#35 2006-07-13 11:39:56

jbruce
New Member
Registered: 2006-07-13
Posts: 2

Re: Post your Clean URL .htaccess tweaks here

Not sure if this is an .htaccess problem or not.

Host: Network Solutions

I have TXP saved in a subfolder and for some reason I keep getting the following error:

The requested URL [correct doain/server path]/[subfolder]/josh/blog/index.php/ was not found on this server.

It’s there I promise.

I would really like to use textpattern but for some reason it’s not liking me. Thanks in advance.

Offline

#36 2006-07-13 13:05:58

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

Re: Post your Clean URL .htaccess tweaks here

jbruce, this thread is for solutions, not questions.

Also, please take a look at the FAQ before posting your question in the appropiate place in the forum. :)

Offline

Board footer

Powered by FluxBB