homepage Welcome to WebmasterWorld Guest from 54.197.147.90
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / Apache Web Server
Forum Library, Charter, Moderators: Ocean10000 & incrediBILL & phranque

Apache Web Server Forum

    
Mod rewrite
How to get rid of? marks
need4speed




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

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]

 

jatar_k




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

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.

transistor




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

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...

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved