Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#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
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
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
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
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
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
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
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