Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2005-11-29 05:27:48
- shekhar
- New Member
- Registered: 2005-11-28
- Posts: 3
Clean URL & .htaccess problems from a novice
Hi !
I recently installed Textpattern on my site. However, I found that the server is not supporting mod-rewrite function of Textpattern. (I knew about it after getting 404 error and then opting for messy url from diagnose Tab which worked)
I intend to use Textpattern to create search engine friendly pages for my site. For this it’s essential to create clean urls. After reading some related posts here, I can figure out that a possible solution to this problem is to make some changes in .htaccess file. However, I am unable to find any .htaccess file on my server. (Or I suppose it’s either not visible or not accessible).
I wrote to my webhost. Here is there answer verbatim :
“dear sir
these are technical aspects which we cannot help you with.
if you want us to put up a .htaccess file then please send us the file
after checking it out in your local machine and then we will upload the same. “
Now here are my problems:
(1) Can I create an .htaccess file & If yes, how ? Further how I can check it locally ?
(2) Here is my diagnostic info (taken from the diag Tab of my TP admin. What do these pre-flight checks mean :
#################
Textpattern version: 4.0.2 (r1076)
last_update: 2005-11-27 12:49:29/2005-11-27 12:40:23
Document root: /var/www/users………./www.mysite.com/htdocs
$path_to_site: /var/www/users/…….. / www.mysite.com/htdocs/tp
Textpattern path: /var/www/users/…./www. www.mysite.com/htdocs/tp/textpattern
Permanent link mode: messy
Temp folder: /tmp
Site URL: www.mysite.com/tp
PHP version: 4.3.1
server_time: 2005-11-29 08:25:30
MySQL: 3.23.58
Locale: en_GB.UTF-8
Server: Apache/2.0.40 (Red Hat Linux)
Pre-flight check:
————————————
Image directory is not writable: /var/www/users/…../www.mysite.com/htdocs/tp/images
File Upload Path is not writable: /var/www/users/……/ www.mysite.com/htdocs/tp/files
/var/www/users/………./ www.mysite.com.com/htdocs/tp/textpattern/setup/ still exists
————————————
.htaccess file contents:
————————————
#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
##################################
I am not quite apt in using databse driven CMS. So if there are some other problems with the above diagnosis, kindly let me know.
Regards
Shekhar
Offline
#2 2005-11-29 05:42:48
- zem
- Developer Emeritus
- From: Melbourne, Australia
- Registered: 2004-04-08
- Posts: 2,579
Re: Clean URL & .htaccess problems from a novice
Textpattern comes with a .htaccess file. According to your diagnostics, it’s already in the right place on your server.
If your hosting company hasn’t installed mod_rewrite, nothing you can do with .htaccess will change that.
If mod_rewrite is installed but clean URLs aren’t working properly, see the FAQ.
Alex
Offline
#3 2005-11-29 06:38:27
- shekhar
- New Member
- Registered: 2005-11-28
- Posts: 3
Re: Clean URL & .htaccess problems from a novice
Thanks for replying !
Two questions :(1) You say :
“According to your diagnostics, it’s already in the right place on your server.” Can you please tell where it is ? I mean can you point to the path.(2) and
“If your hosting company hasn’t installed mod_rewrite “Is mod_rewrite a piece of software which can be installed/uninstalled from a server. If so, can my host installed it for me if requested. Or is it related to a security issue which many host are feared of ?
Offline
#4 2005-11-29 07:14:15
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: Clean URL & .htaccess problems from a novice
It’s an Apache module. There’s no security risks I know of, but your host may not install it for you anyway (even though it is a very commonly used module). You’d have to ask to find out how they feel about it.
Offline
#5 2005-11-29 12:20:58
- shekhar
- New Member
- Registered: 2005-11-28
- Posts: 3
Re: Clean URL & .htaccess problems from a novice
Thanks fro replying ! I have send an email to my host to advise whether mod_rewrite module is installed or not. Further I have asked them to install one if not installed already.
But I am still unable to access .htaccess file on my server. Where it should be. Any guess ?
Offline
Re: Clean URL & .htaccess problems from a novice
It should be in the root directory of your TXP install which looks like /tp/ to me from the above information. It is a “hidden” file which is why it has the “.” infront of it. If you can’t see it you probably need to go into the options in your FTP client and look for an option to show hidden files.
Stuart
In a Time of Universal Deceit
Telling the Truth is Revolutionary.
Offline