homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Gold Sponsor 2015!
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

10+ Year Member

Msg#: 143 posted 11:10 am on Nov 13, 2002 (gmt 0)

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


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

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



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

Msg#: 143 posted 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.


10+ Year Member

Msg#: 143 posted 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