in reply to rewriting of URIs

Welcome, see The Perl Monks Guide to the Monastery

Please advise.

dots and question marks are special characters in regular expressions ... meaning you skipped the introduction (see links below)

Also I don't think "Redirect" takes a regular expression ... docs explain this

Try stackoverflow without the "perl" tag as apache/mod-rewrite isn't perl at all

Example http://stackoverflow.com/questions/877736/301-redirect-index-html-to-or-index-php

See also Re: mod_rewrite VS SSI VS your better idea (meaningful urls)
mod_rewrite: A Beginner's Guide to URL Rewriting
mod_rewrite Tutorial for Absolute Beginners
Apache Server Mod Rewrite Tips, Tricks and Forum Modrewrite.com
mod_rewrite - Apache HTTP Server
mod_alias - Apache HTTP Server

Where should I post X?, How do I post a question effectively?

  • Comment on Re: rewriting of URIs (mod_rewrite mod_alias)

Replies are listed 'Best First'.
Re^2: rewriting of URIs (mod_rewrite mod_alias)
by gkbk (Initiate) on Mar 13, 2014 at 02:08 UTC
    Thanks Anonymous Monk for those links. They were helpful, but still I am unable to solve my problem. I tried as follows:
    RewriteRule ^http\:\/\/localhost\/sample\/prog\.pl\?q\=param\:A\;pageo +ffset\=10$ http://localhost/sample/prog.pl?q=param:B;pageoffset=20 RewriteRule ^prog\.pl\?q\=param\:A\;pageoffset\=10$ prog.pl?q=param:B; +pageoffset=20
    After this, when I open page 'http://localhost/sample/prog.pl?q=param:A;pageoffset=10' in the browser, I get the content of this same page and not the page that is intended/directed (i.e. http://localhost/sample/prog.pl?q=param:B;pageoffset=20). Any suggestions? Thanks again.