|
Posted by jonnyblazed@gmail.com on 10/19/06 23:49
I've read a little bit now about mod_rewrite. So, just testing it with
a simple rule I can't get it to work... I placed the following at the
top of my .htaccess file:
RewriteEngine on
RewriteRule shortcut u/user/index.html
I am using GoDaddy and they have mod_rewrite installed and enabled by
default on all their servers. So, I know thats not the issue.
I've also tried using a few regexp's like ^?/shortcut$?, ^/shortcut$,
^/?shortcut$ and so on, but none seem to work...
Am I doing something wrong?
PS
u/user/index.html DOES exist.
On Oct 19, 6:16 pm, Andy Hassall <a...@andyh.co.uk> wrote:
> On 19 Oct 2006 15:12:50 -0700, "jonnybla...@gmail.com" <jonnybla...@gmail.com>
> wrote:
>
> >I've searched everywhere for this but I'm not sure exactly what to
> >search for.
>
> >What I am trying to do is pass a variable to a php script via the URL.
> >However, I don't want to use the standard "?name=value format." I want
> >to either pass the variable as "value website.com" or
> >"website.com/value" where the script is stored in some directory
> >"website.com/script/index.php" and the value gets stored in a variable
> >declared within my php script.
>
> >I have seen this done but I just need some guidance on how to go about
> >doing it. Look up "mod_rewrite" for Apache.
>
> --
> Andy Hassall :: a...@andyh.co.uk ::http://www.andyh.co.ukhttp://www.andyhsoftware.co.uk/space:: disk and FTP usage analysis tool
Navigation:
[Reply to this message]
|