Page 1 of 1

AddType - WHERE??

Posted: Tue Jul 24, 2007 11:33 am
by ivanfx
Hello! :D

I have an error when working with RewriteRule.

When I land on a requested page, the browser shows nothing.

Someone said to use AddType text/html php - but I don't know how.

I'm using Apache 1.3x (EasyPHP instalation) and PHP4.

my .htaccess file:

Code: Select all

Options +FollowSymLinks
RewriteEngine On
RewriteRule ^article/(.+)$ article.php?f=$1
Help? :oops:

Posted: Tue Jul 24, 2007 11:40 am
by Gente
Browser can show nothing in various cases. Are you sure everything OK with your scripts?

Posted: Tue Jul 24, 2007 11:45 am
by ivanfx
Yes, positive!

http://www.mysite.com/article.php -> WORKS
http://www.mysite.com/article -> WORKS

http://www.mysite.com/article/1 -> DOESN'T WORK!!!

It prints only php generated content, but loads the entire document..

Posted: Tue Jul 24, 2007 1:01 pm
by superdezign
Try setting a RewriteBase.

Posted: Tue Jul 24, 2007 4:37 pm
by ivanfx
I've put:

RewriteBase /

But I get a weird error: when I write http://www.mysite.com/article/
I get the contents of localhost root ... :?: