Forum Moderators: phranque
I'd like to refer to p.php?id=testid&dir=testdir&lang=testlang as
/testlang/testdir/testid
Can anyone tell me what's wrong about this htaccess- file.
I spend quite a lot of time trying different possibilities but all I ever got was an "404"-error.
Options +FollowSymLinks
RewriteEngine on
RewriteBase /full/path/to/
RewriteRule ^/(\.*)/(\.*)/(\.*)$ p.php?id=$3&dir=$2&lang=$1 [T=application/x-httpd-php]
Yours, Jouno
[edited by: jouno at 6:24 am (utc) on Mar. 15, 2004]
/full/path/to/
to be redirected to that script.
Why don't you sent
/full/path/to/*
to p.php
and then use some php-code to parse the actual request to parameters?!?
from the top of my head:
RewriteEngine on
RewriteRule ^/full/path/to/.*$ p.php
should redirect all requests made in that path to p.php
then you can use $_SERVER['REQUEST_URI'] to determine what to display.