Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-01-03 15:54:49

m0rt
Member
Registered: 2005-07-12
Posts: 12

htaccess problem

Hi,

I somehow managed to delete my .htaccess file and as a result, Permanent Links only work in Messy mode.

I tried downloading the Textpattern install zip again and just uploading the original .htaccess file but I get the following error when I switch back to clean URL mode in the admin and then visit any Permalinks on the site: “The requested URL /subfolder/article-name was not found on this server.”

I guess Textpattern must modify .htaccess during install and setup?

If so, any idea how I can get back to the land of clean urls?

My TXP is installed in a sub folder for testing.

Many Thanks,
Jonathan.

Offline

#2 2006-01-03 16:29:56

KurtRaschke
Plugin Author
Registered: 2004-05-16
Posts: 275

Re: htaccess problem

With Textpattern in a subfolder, you’ll need a RewriteBase directive in your .htaccess file. You probably added one to the original one and then forgot about it.

-Kurt

Last edited by KurtRaschke (2006-01-03 16:43:31)


kurt@kurtraschke.com

Offline

#3 2006-01-03 17:10:52

m0rt
Member
Registered: 2005-07-12
Posts: 12

Re: htaccess problem

Hi Kurt,

I have removed the comment from RewriteBase in the default htaccess file. My subfolder is called dev – (see htaccess file below)

Now, I’m getting “You don’t have permission to access /dev/ on this server” when I visit the homepage

Does this htaccess file look right?

#DirectoryIndex index.php index.html
#Options +FollowSymLinks
RewriteBase /dev/

<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

Thanks,
Jonathan

edit/ Doh! forgot to uncomment the other bits

Sorted now, thanks for your help.

Last edited by m0rt (2006-01-03 17:20:24)

Offline

Board footer

Powered by FluxBB