Welcome to WebmasterWorld Guest from 54.162.226.212

Forum Moderators: Ocean10000 & incrediBILL & phranque

Message Too Old, No Replies

Mod rewrite

How to get rid of? marks

     
11:10 am on Nov 13, 2002 (gmt 0)

10+ Year Member



How do I get rid of two variables on one string?

eg.
www.somesite.dk/goto.php?side=1and?=id

As u can see there are to? marks I would Like to ged rid of them both, I have got one of the variables away.. but how can I remove the second?

Yours Faithfully
Jens Mikkelsen
Denmark

[edited by: jatar_k at 10:58 pm (utc) on Nov. 13, 2002]
[edit reason] generalized url [/edit]

10:57 pm on Nov 13, 2002 (gmt 0)

WebmasterWorld Administrator jatar_k is a WebmasterWorld Top Contributor of All Time 10+ Year Member



Welcome to WebmasterWorld [webmasterworld.com] need4speed

I know there are some very good threads around about mod rewrite, I can't seem to find the one I am thinking of though.

You can also try the "site search" at the top of the page.

3:32 am on Nov 14, 2002 (gmt 0)

10+ Year Member



And indeed there are!
I came here a few months ago seeking the same kind of knowledge, Need4Speed.
Check the Rewrite Guide [httpd.apache.org] and do as Jatar_K says, very good threads around here.
In your httpd.conf file or virtualhosts.conf file you need to start by starting the Rewrite Engine, then make a rule and how to rewrite it:

RewriteEngine On
RewriteRule ^/some/path/(.*)/(.*)/some\.php$ /rewrite/to_another/path_if_you_wish/goto.php?side=$1&id=$2 [PT,L] # this should be one continous line

That's about it...
 

Featured Threads

Hot Threads This Week

Hot Threads This Month