Page 1 of 1

Need .htaccess Rewrite Explained

Posted: Sat Jun 04, 2005 8:04 pm
by Skara
Apache 2.0.49
Complete .htaccess newb.

I can't get it to do anything but give me a 404.

I want to rewrite
webdesign.jumpfrog.org/example
or
webdesign.jumpfrog.org/example/something
into
webdesign.jumpfrog.org/?page=example

I'll add more to it once I get this working.
My problem is, I can't find any good tutorials on it.
Here's what I've got:

Code: Select all

RewriteEngine On
RewriteCond %{HOST_NAME} ^webdesign.jumpfrog.org$
RewriteRule ^(ї^/]+) ?page=$1 їL]
Also, which directory do I put it in? The webdesign directory or the jumpfrog directory? (I've tried both to no avail.)

Posted: Sun Jun 05, 2005 10:32 am
by Skara
Ok, found out .htaccess is a mini httpd.conf. Right. Tried putting the rewrite stuff in there too. Restarted apache. No difference. Changed the above to simply:

Code: Select all

RewriteEngine On
RewriteRule ^(.+) ?page=$1 їL]
and still nothing. -_-'

(btw, I realized I made a mistake in the RewriteCond with the .s)

I've read and read the manual on this. Surely it's something stupid I'm doing, but I sure as hell can't figure it out.