Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

  1. Index
  2. » How do I…?
  3. » htaccess?

#1 2006-10-23 02:15:06

alittle116
Member
From: Brooklyn
Registered: 2005-09-14
Posts: 72
Website

htaccess?

what is this? i am trying to switch my database to a new server and am following these directions

http://textbook.textpattern.net/wiki/index.php?title=Moving_Installation_from_one_Host_to_Another

i think i have done everything right but i dont understand what it means when it says “Upload your entire Textpattern tree (yourdomain.com/textpattern) and the default.php & .htaccess files to your new server via FTP.”

i dont see any .htaccess files. am i missing something? where should this be?

Offline

#2 2006-10-23 02:27:30

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

Re: htaccess?

.htaccess files are usually hidden by Windows, if that’s what you’re using. In an explorer window, Tools>Folder Options>View Tab>Show Hidden Files and Folders. You should be able to configure your FTP client to display hidden files too.

Offline

#3 2006-10-23 03:09:37

alittle116
Member
From: Brooklyn
Registered: 2005-09-14
Posts: 72
Website

Re: htaccess?

i am using mac osx. i set Transmit (my ftp program) to show invisible files, but i am still not seeing any htaccess stuff. do you know specifically what directory they should be in?

Offline

#4 2006-10-23 04:14:27

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

Re: htaccess?

It should be in the root of your install (before the /textpattern/ directory). If it isn’t there, you can just create a new one on your new host:

Save the following as .htaccess (or you can save it from here):

#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

Last edited by jm (2006-10-23 04:15:57)

Offline

#5 2006-10-23 04:16:04

alittle116
Member
From: Brooklyn
Registered: 2005-09-14
Posts: 72
Website

Re: htaccess?

thanks. is there anything in need to modify in that?

Offline

#6 2006-10-23 05:43:34

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

Re: htaccess?

It depends on your server, but if you run into any troubles, see this FAQ.

Offline

  1. Index
  2. » How do I…?
  3. » htaccess?

Board footer

Powered by FluxBB