Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2008-12-23 07:21:03

RonErazo
New Member
Registered: 2008-12-23
Posts: 2

Can't get Clean URLs to work on a localhost

So I’ve been trying to use the clean urls on my local textpattern install without any luck, I’ve read the FAQs and followed the steps there, using the .htaccess in the install folder. Here is my .htaccess:

#DirectoryIndex index.php index.html
#Options +FollowSymLinks
#Options -Indexes
<IfModule mod_rewrite.c>
	RewriteEngine On
	RewriteBase /textpattern/

	RewriteCond %{REQUEST_FILENAME} -f [OR]
	RewriteCond %{REQUEST_FILENAME} -d
	RewriteRule ^(.+) - [PT,L]
	RewriteCond %{REQUEST_URI} !=/favicon.ico
	RewriteRule ^(.*) index.php
	RewriteCond %{HTTP:Authorization}  !^$
	RewriteRule .* - [E=REMOTE_USER:%{HTTP:Authorization}]
</IfModule>

#php_value register_globals 0

I’ve installed textpattern on a folder called textpattern so I change the RewriteBase to that folder, localhost/textpattern/. I’ve checked if I have the mod_rewrite module loaded using phpinfo and I do.

I’m using Linux with Apache 2.2.11 and PHP 5.2.7

Thanks for your time

Last edited by RonErazo (2008-12-23 07:30:20)

Offline

#2 2008-12-23 15:23:08

RonErazo
New Member
Registered: 2008-12-23
Posts: 2

Re: Can't get Clean URLs to work on a localhost

Ok I got it to work:
Changed a couple of lines in my http.conf file:
<Directory “/path/to/your/install”>
Options FollowSymLinks
AllowOverride All
Order deny,allow
Allow from all
</Directory>
My error was that AllowOverride was set to None, so setting this to All made the .htaccess file work.

Offline

Board footer

Powered by FluxBB