Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2005-10-26 18:01:31

pollo
Member
Registered: 2005-02-17
Posts: 22

.htaccess file not allowed PLEASE help

Hi,

My host will not allow using the htaccess file that comes with textpattern. I am running the beta site right now without it, but would love to be able to offer clean URLs.

My host wants to work with me on this and they wrote:

“If you have rewrite rules which allow the clean URLs please forward them to us and we will be able to add them to apache’s configuration.”

Can anyone help me with this?

Thanks,

p

Offline

#2 2005-10-26 18:10:05

ubernostrum
Member
From: Lawrence, KS
Registered: 2004-05-05
Posts: 238
Website

Re: .htaccess file not allowed PLEASE help

The rewrite rules are in the .htaccess file. So just copy and paste into an email to your host.


You cooin’ with my bird?

Offline

#3 2005-10-26 21:04:00

pollo
Member
Registered: 2005-02-17
Posts: 22

Re: .htaccess file not allowed PLEASE help

Thanks. I sent them this:
#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>

I hope they can make it work.

I appreciate your reply.

Take care,
p

Offline

#4 2005-10-27 14:15:15

pollo
Member
Registered: 2005-02-17
Posts: 22

Re: .htaccess file not allowed PLEASE help

My host added to the RewriteRules to my configuration container, whatever that is. They thought it was all set, but then I couldn’t access any pages. I kept getting 400 errors.

When I told them it wasn’t working, they removed what they did and wrote this:
I’m trying to figure out exactly what the rules are supposed to do. In the meantime, I commented the rules out so your site loads.

“We don’t really support troubleshooting RewriteRules, so if you could take a look at them and make any changes, we can edit them for you in your config file. If you let us know what you’re trying to accomplish with the rules, we may be able to see what is causing the error.”

What can I tell them?

p

Offline

#5 2005-10-27 22:21:44

zem
Developer Emeritus
From: Melbourne, Australia
Registered: 2004-04-08
Posts: 2,579

Re: .htaccess file not allowed PLEASE help

The rules are supposed to:

1. Allow requests for existing files and directories to be handled as normal by the web server
2. Internally redirect any other requests to index.php


Alex

Offline

#6 2005-11-03 15:56:19

pollo
Member
Registered: 2005-02-17
Posts: 22

Re: .htaccess file not allowed PLEASE help

Thanks!

Offline

#7 2005-11-03 22:18:03

NyteOwl
Member
From: Nova Scotia, Canada
Registered: 2005-09-24
Posts: 539

Re: .htaccess file not allowed PLEASE help

<blockquote><em>When I told them it wasn’t working, they removed what they did and wrote this:
I’m trying to figure out exactly what the rules are supposed to do. In the meantime, I commented the rules out so your site loads.</em></blockquote>

Time to find a new host if the server administrator/technician doesn’t understand htaccess rewrite rules.


Obsolescence is just a lack of imagination. / 36-bits Forever! / #include <disclaimer.h>;

Offline

#8 2005-11-04 21:39:38

pollo
Member
Registered: 2005-02-17
Posts: 22

Re: .htaccess file not allowed PLEASE help

I got lucky.

Host wrote: “We decided to allow your site permission to use rewrite rules in the .htaccess files. Please go ahead and restore those files to the appropriate locations and things should work. If they don’t you will need to contact the developer of the product.”

thanks for all the help.

p

Offline

#9 2005-11-29 00:11:47

pollo
Member
Registered: 2005-02-17
Posts: 22

Re: .htaccess file not allowed PLEASE help

Well, my host never made this right. Still, the htaccess file kills the site.

Here is our last exchange:

THEM: When we try to enable these rules for your site it results in the site no longer loading properly. It seems likely that there is an error in the syntax of the rules. Could you ensure that the syntax is correct and send us updated rules? Thanks

ME: Can you tell me where you are trying to enable them so I can ask the
Textpattern support forum to weigh in on the problem?

THEM: We’re entering them directly into the apache configuration(i.e. a file included in httpd.conf)

Can anyone help me set them on the right path?

Thanks,

p

LATEST:
I sent the host the article from here: http://textpattern.com/weblog/20/clean-urls-on-different-hosts, and they wrote this:

Unfortunately that didnt help.I tried a various combinations, both in apache file and the .htaccess, but i couldnt make it work.
Since rewrite rule is disabled in .htaccess, kindly contact the Textpattern support and ask them to provide us the exact rules that should be specified in the apache configuration files. We will then add them and see if it works.

Last edited by pollo (2005-11-29 14:53:21)

Offline

#10 2005-11-29 23:01:50

edburdo
Member
Registered: 2004-09-20
Posts: 79
Website

Re: .htaccess file not allowed PLEASE help

I’d say find a new host. or use messy urls. Those rules work for about 95% of the rest of the TXP users… and a minor tweak makes it work for 90% of of the rest of the users.

If they have turned on mod_rewrite, and let you use a .htaccess file, then those rules should work. My guess is the host doesn’t really know how to be a host…


Eric

Offline

#11 2005-11-30 00:23:14

ubernostrum
Member
From: Lawrence, KS
Registered: 2004-05-05
Posts: 238
Website

Re: .htaccess file not allowed PLEASE help

The syntax of the RewriteRules in the stock .htaccess provided with Textpattern is valid and correct, and works pretty much everywhere I’ve tried Textpattern, which is several hosting companies plus my own local testing server.

At this point, I’d start asking questions about your host, rather than about TXP’s rewrites.


You cooin’ with my bird?

Offline

#12 2005-11-30 01:04:53

pollo
Member
Registered: 2005-02-17
Posts: 22

Re: .htaccess file not allowed PLEASE help

Thanks for the advice. It wasn’t that I am qurstioning TP. I am trying to see someone out there knows what is different about their server configuration and how to change it to allow the htaccess file to work.

Offline

Board footer

Powered by FluxBB