AddType - WHERE??

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
ivanfx
Forum Newbie
Posts: 14
Joined: Sun Jul 01, 2007 3:47 am

AddType - WHERE??

Post 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:
User avatar
Gente
Forum Contributor
Posts: 252
Joined: Wed Jun 13, 2007 9:43 am
Location: Ukraine, Kharkov
Contact:

Post by Gente »

Browser can show nothing in various cases. Are you sure everything OK with your scripts?
ivanfx
Forum Newbie
Posts: 14
Joined: Sun Jul 01, 2007 3:47 am

Post 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..
User avatar
superdezign
DevNet Master
Posts: 4135
Joined: Sat Jan 20, 2007 11:06 pm

Post by superdezign »

Try setting a RewriteBase.
ivanfx
Forum Newbie
Posts: 14
Joined: Sun Jul 01, 2007 3:47 am

Post 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 ... :?:
Post Reply