Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#13 2009-09-21 19:30:54

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: [Solved] .htaccess and 000webhost.com

Does it make a difference if you remove the # in this line?

#Options +FollowSymLinks

You can try it with and without the edit in ruud’s post above.

Offline

#14 2009-09-21 19:40:05

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: [Solved] .htaccess and 000webhost.com

The “500” error messages should be visible in the webserver error logs. Usually there’s also more information there about what causes the error. Problems are easier to fix if you know what the problem is.

Offline

#15 2009-09-21 20:04:52

sarah
Member
Registered: 2009-08-13
Posts: 46

Re: [Solved] .htaccess and 000webhost.com

All you guys, thank you so much!

I finally figured it out, by starting with the original unaltered .htaccess file and then removing the “#” one by one. Now I can access my home page via nonameyet.net16.net, without having to include the “index.php”- yet I can still access the page with the “index.php” at the end too. Eureka!!

Here is the .htaccess coder for others who are using my web hosting company and are having the exact same problems:

DirectoryIndex index.php index.html

Options +FollowSymLinks
Options -Indexes

<IfModule mod_rewrite.c>
	RewriteEngine On
	RewriteBase /

	RewriteCond %{REQUEST_FILENAME} -f [OR]
	RewriteCond %{REQUEST_FILENAME} -d
	RewriteRule ^(.+) - [PT,L]

	RewriteCond %{REQUEST_URI} !=/favicon.ico
	RewriteRule ^(.*) index.php

	RewriteCond %{HTTP:Authorization}  !^$
	RewriteRule .* - [E=REMOTE_USER:%{HTTP:Authorization}]
</IfModule>

#php_value register_globals 0

(added bc.. -Els)

Last edited by els (2009-09-21 20:14:44)

Offline

#16 2009-09-21 20:19:22

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: [Solved] .htaccess and 000webhost.com

Thanks for posting the working .htaccess, Sarah! I changed the topic subject so that others who might need this info can easily find it.

Offline

#17 2009-09-21 20:23:16

sarah
Member
Registered: 2009-08-13
Posts: 46

Re: [Solved] .htaccess and 000webhost.com

Ok, I’ve done some more experimenting, and I’ve come to discover that the ONLY part of the htaccess file I NEED to change is the following path: #RewriteBase /relative/web/path/

to

RewriteBase /

And that’s is it- literally!

Thanks again you guys!

Offline

#18 2009-09-21 20:34:23

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

Re: [Solved] .htaccess and 000webhost.com


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#19 2009-09-21 20:44:06

sarah
Member
Registered: 2009-08-13
Posts: 46

Re: [Solved] .htaccess and 000webhost.com

Yes maniqui, you’re correct. However, I had been advised to make other ammendments prior to the ammendment that Ruud suggested. I didn’t think to start off with the original .htaccess file and just change the section that my web hosting provider suggests I alter…

Els, can you re edit the post of mine that you previously edited (a couple of posts up) and simply just change the “rewrite base line” because that is all that needs to be changed. Perhaps you can link to the page on my web host providers site too, which Ruud also linked to.

Sorry for the inconvenience.

Offline

Board footer

Powered by FluxBB