Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-06-18 00:52:29

TUIRUWHIU
New Member
Registered: 2007-06-16
Posts: 5

.htaccess amendments

I’m getting the error message and have tried various workarounds suggested in the forum as well as asking my provider. None of them are working and the only way I can get the site going and have my posts displayed is to set it to messy urls and rename .htaccess to another name (.htaccess2).

My provider has an Apache file server, details here:

http://web.mydns.net.nz/info.php

Can anyone suggest a work around that will allow for clean urls?

(Apologies as I’m new to all of this and not a code writer or developer.)

Thanks

Offline

#2 2007-06-18 01:17:04

Jeremie
Member
From: Provence, France
Registered: 2004-08-11
Posts: 1,578
Website

Re: .htaccess amendments

It’s probably not a PHP thing.

What exactly is your error message? Do you know of any modifications or specific things your hosting company might have done to Apache and/or mod_rewrite?

Offline

#3 2007-06-18 01:23:12

TUIRUWHIU
New Member
Registered: 2007-06-16
Posts: 5

Re: .htaccess amendments

Error message as below. My provider investigated and told me that the problem is with the .htaccess file, and he suggested changing the name.

thanks

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, webmaster@web.mydns.net.nz and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

————————————————————————————————————————

Apache/1.3.37 Server at www.swellmagonline.com Port 80

Offline

#4 2007-06-18 03:56:22

TUIRUWHIU
New Member
Registered: 2007-06-16
Posts: 5

Re: .htaccess amendments

My provider had a go at fixing it and moved the .htaccess file into the text pattern folder. Didn’t improve the situation.
I’ve completely reinstalled everything back onto the server and am back at the same problem.
My provider has assured me that they have made no changes to the Apache server and that mod_rewrite installed.

I’ve pulled the code from the .htaccess file in the version 4.0.4 that I have uploaded. As follows:

#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

The structure of the folders on my server are as follows:

ftp.mydns.net.nz
—swellmagonline.com
—-images
—-files
—-textpattern

Both the .htaccess file and the index.php file sit at the same level in the swellmagonline.com folder as the images, files and texpattern folders.

Not sure where to go next. Any thoughts appreciated.

Offline

#5 2007-06-18 08:28:11

TUIRUWHIU
New Member
Registered: 2007-06-16
Posts: 5

Re: .htaccess amendments

My provider has figured out how to do it and it’s now working. I will post the detail in the thread on this when I get it.

thanks

Offline

Board footer

Powered by FluxBB