Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2010-04-20 14:25:17

northtoronto
New Member
Registered: 2008-03-28
Posts: 8

Clean URL Test Failed

I am with Dreamhost. For some reason everything broke. Dreamhost says they haven’t changed anything. Everything was working fine before. Anyway my diagnosis page says that Clean URL test failed. Which is true cause the site doesn’t work anymore. Here is what I have in my .htaccess file:

DirectoryIndex index.php index.html
Options +FollowSymLinks

#RewriteBase /relative/web/path/

AddType text/html *.html *.htm

#<IfModule mod_rewrite.c>
#
#RewriteEngine On

#RewriteCond %{REQUEST_FILENAME} -f [OR]

#RewriteCond %{REQUEST_FILENAME} -d

#RewriteRule ^(.+) - [PT,L]

#RewriteRule ^(.*) index.php

#
#</IfModule>


AddType application/x-httpd-php .html .htm

If I remove the “#” I get a 500 Internal Server Error. Help please.

Example: www.iqra.net/whatsnew is not working.

(added bc.. for better display. -Els)

Last edited by els (2010-04-20 18:33:36)

Offline

#2 2010-04-20 18:42:31

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: Clean URL Test Failed

If I remove the “#” I get a 500 Internal Server Error.

If you remove which #? You need the <IfModule> part for clean URLs to work, so if you had clean URLs working, the #s couldn’t have been there before. What happens if you replace your .htaccess with the default one:

#DirectoryIndex index.php index.html

#Options +FollowSymLinks
#Options -Indexes

<IfModule mod_rewrite.c>
	RewriteEngine On
	#RewriteBase /relative/web/path/

	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

If that works, you can always add your extra lines one by one, and see if/where it goes wrong. I don’t know what they are supposed to do, but having one before and one after the rewrite rules doesn’t seem very logical?

Offline

#3 2010-05-10 19:17:48

northtoronto
New Member
Registered: 2008-03-28
Posts: 8

Re: Clean URL Test Failed

Sorry I forgot to thank you for your help Els. The default .htaccess you posted worked.

Offline

Board footer

Powered by FluxBB