Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#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
#37 2006-07-13 13:26:41
- jbruce
- New Member
- Registered: 2006-07-13
- Posts: 2
Re: Post your Clean URL .htaccess tweaks here
Noticed after the fact – sorry :)
It was early here.
Offline
Re: Post your Clean URL .htaccess tweaks here
To follow on from rloaderro’s tips on getting clean URLs working under the Apache install in OSX – if you are using the default “Webserver” directory under the main “Library” directory to host your files (i.e. the default location for localhost or 127.0.0.1) you need to also edit your httpd.conf to have ‘AllowOverride All’ under the apropriate section.
I used the .htaccess settings listed above by <b>thomasarie</b> and it works like a charm.
“Absorb what is useful, Discard what is not, Add what is uniquely your own” – Bruce Lee
Offline
Re: Post your Clean URL .htaccess tweaks here
Could someone help me with this:
I want to educate http://mysite.com/news to http://mysite.com, since I display news on the home page.
I thought of something like this: RewriteRule ^news$ http://localhost/
But doesn’t work right away, I think it conflicts with the other rules.
I have the standard .htaccess file:
<code>
#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>
edit: sorry for the missing linebreaks in the code, can’t get them in for some reason…
Last edited by jan (2006-09-14 16:10:23)
Kensington TXP powered rock
Offline
Re: Post your Clean URL .htaccess tweaks here
jan,
In the admin area, under sections, look for On front page? for the news section. If you toggle Yes, then the news section will appear on the front page.
We Love TXP . TXP Themes . TXP Tags . TXP Planet . TXP Make
Offline
Re: Post your Clean URL .htaccess tweaks here
Oh but that’s not exactly what I meant to say, maybe I didn’t make myself clear..
News is already being displayed at my home page (site root) but I would like to actually redirect “page.com/news” to just page.com, so that the url in the browser’s address bar actually changes to that.
input: page.com/news
rewrite: page.com/news —> page.com
output: homepage with just page.com in the address bar
Kensington TXP powered rock
Offline
#42 2006-09-25 14:35:56
- textpatternZoo
- New Member
- Registered: 2006-09-24
- Posts: 7
Re: Post your Clean URL .htaccess tweaks here
Working fine on sourceforge at the moment. With the original it doesn’t work. I just added the “ RewriteBase / “ to the original, and turned off the globals.
Textpattern version: 4.0.3 (r1188)
PHP version: 4.3.10
Server time: 2006-09-25 07:40:48
MySQL: 4.1.21-standard
Locale: en_GB.UTF-8
Server: Apache/1.3.33 (Unix) PHP/4.3.10
Apache version: Apache/1.3.33 (Unix) PHP/4.3.10
PHP mode: apache
Operating System: Linux 2.6.17.4
.htaccess file contents:
————————————
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^(.+) – [PT,L]
php_value register_globals off
RewriteRule ^(.*) index.php
————————————
Last edited by textpatternZoo (2006-09-25 14:45:23)
Offline
#43 2006-09-26 23:19:06
- NyteOwl
- Member

- From: Nova Scotia, Canada
- Registered: 2005-09-24
- Posts: 539
Re: Post your Clean URL .htaccess tweaks here
php_value register_globals off
This won’t work (php_value) if PHP is implemented as cgi or fastcgi rather than an Apache module. You’ll need your own php.ini or use a function like setini().
Obsolescence is just a lack of imagination. / 36-bits Forever! / #include <disclaimer.h>;
Offline
#44 2006-09-27 00:58:44
- textpatternZoo
- New Member
- Registered: 2006-09-24
- Posts: 7
Re: Post your Clean URL .htaccess tweaks here
In sourceforge PHP support is provided using Apache’s mod_php.
Offline