Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-01-04 22:35:27

clikkaboy
New Member
From: Sunbury on Thames, UK
Registered: 2007-01-04
Posts: 5
Website

Mod_Rewrite and htaccess file

Hopefully someone can help me with this.

I have web hosting with WebFusion and have been hosting Textpattern in a subdirectory without an issue for ages. I thought it would be a good idea to have the main site use Textpattern too, so I installed it (without any issues) and was then sent an email by my hosting provider saying that the htaccess in the root of my site (the default one from the Textpattern installation) was causing the server to be overloaded and hang. They have now locked down the htaccess file and none of my site is working.

I have tried replacing the file and the same thing happened – I’ve even tried using the same htacess as the installation in the subdirectory that is working.

Is it because it doesn’t work in the root of the directory on WebFusion hosting or is one installation affecting the other?

They will unlock my access when it is fixed – can anyone help?

Thanks in anticipation!

Elliott

Offline

#2 2007-01-04 23:00:00

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

Re: Mod_Rewrite and htaccess file

That’s pretty retarded that your htaccess file was locked down. I don’t understand why it wasn’t causing a problem when it was in the subdirectory. Could you email them for specifics as to how having the htaccess in the root is any different than placing it in a subdirectory?

BTW, you might want to check out the hosts that rock and hosts that suck threads (my labels :P). I’m thinking WebFusion should be added to the latter, especially if you don’t get a clear response.

Offline

#3 2007-01-05 03:20:55

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: Mod_Rewrite and htaccess file

The default .htaccess file won’t do that – are you sure it is exactly the one provided, unmodified? Can you post the results of your “High” diagnostics output?

Offline

#4 2007-01-05 19:49:34

clikkaboy
New Member
From: Sunbury on Thames, UK
Registered: 2007-01-04
Posts: 5
Website

Re: Mod_Rewrite and htaccess file

Unfortunately I can’t get to any log files from the server to troubleshoot. I was just told by the Hosting company that it was the .htaccess file that was causing the server to overload.

Offline

#5 2007-01-06 14:57:08

clikkaboy
New Member
From: Sunbury on Thames, UK
Registered: 2007-01-04
Posts: 5
Website

Re: Mod_Rewrite and htaccess file

I spoke to the webhosting support people last night – they said that the mod_rewrite function is causing problems on every website as it is trying to rewrite every module on every website?

They asked whether I need it and whether I can comment the lines out?

I can comment the lines out, but do I need the function? Is it going to cause me problems with Textpattern – I assume it is required as it wouldn’t be in the .htaccess file.

Offline

#6 2007-01-06 18:55:02

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: Mod_Rewrite and htaccess file

It is there to provide clean url ability. Without it, Textpattern will still function, you just have to use “messy” urls.

It sounds like they have either got a buggy version of mod_rewrite, or they have severely misconfigured it.

Offline

#7 2007-01-06 19:10:14

clikkaboy
New Member
From: Sunbury on Thames, UK
Registered: 2007-01-04
Posts: 5
Website

Re: Mod_Rewrite and htaccess file

Thanks for that advice – it’s been difficult to get any support from them.

Sorry to ask, but if I comment the mod_rewrite out do I need to uncomment any of the other parts of .htaccess?

Offline

#8 2007-01-06 21:37:15

jstubbs
Member
From: Hong Kong
Registered: 2004-12-13
Posts: 2,395
Website

Re: Mod_Rewrite and htaccess file

You might want to consider getting another host. No reason why mod_rewrite should cause any problems. As Mary says, the mod_rewrite rules are there to allow you to have clean URL’s, which may be important to you if you want search engine friendly links.

To answer your question, you should not need to change anything else in your .htaccess file. Change the host would be a better idea ;-)

Offline

#9 2007-01-06 21:52:11

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: Mod_Rewrite and htaccess file

…if I comment the mod_rewrite out do I need to uncomment any of the other parts of .htaccess?

If the rest of the file is commented out, you can just remove the file altogether.

Offline

Board footer

Powered by FluxBB