Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-08-05 16:51:29

lemonhead
Member
Registered: 2006-08-04
Posts: 32

Need to create htaccess file for mod re-write

When I click on a post I get the message:Error 404: NOT FOUND. To resolve this issue my web host provider I need to create a htaccess file within my root directory where the blog is located. What lines of code should I place within the htaccess file. The FAQ indicates how to modify a htaccess file, but not how to create an htaccess file.

Please note the web host provider said they support mod re-write.

Thanks in advance.

POB

Offline

#2 2006-08-05 17:22:28

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

Re: Need to create htaccess file for mod re-write

.htaccess is in the install packet. Some FTP clients don’t show this file, but you can change the settings to show all files. Just upload it to the root directory on the server.

Offline

#3 2006-08-05 18:06:51

lemonhead
Member
Registered: 2006-08-04
Posts: 32

Re: Need to create htaccess file for mod re-write

There is already an htaccess file in my root (probably created by web host provider). There is also the htaccess file provided by textpattern. Do I need to combine both ?

htaccess created by webhost provider
AuthType Basic
AuthName “Access for /.”
AuthUserFile /kunden/home/21/d172257898/htpasswd
require user xx

htaccess created by textpattern
#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

Offline

#4 2006-08-05 19:49:45

jm
Plugin Author
From: Missoula, MT
Registered: 2005-11-27
Posts: 1,746
Website

Re: Need to create htaccess file for mod re-write

Yes, but most likely the one in your root contains settings for Microsoft Frontpage, which can be safely deleted.

Last edited by deldindesign (2006-08-05 19:51:18)

Offline

Board footer

Powered by FluxBB