Re: Redirect a old dynamic URL to a new dynamic URL

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Nick,

Thanks for your response.

On 19 Jun 2008, at 17:25, Nick Kew wrote:

On Thu, 19 Jun 2008 15:01:18 +0100
Ian Munday <ian.munday@xxxxxxxxxxxxx> wrote:

I'm using the .htaccess file

Ouch!  That makes for slow and complex.

Is there a better way then?


However, using the old URLs with parameters does not work.  I wonder if this is a character escape issue, and have tried a few variations but have had no joy.  As an example, what I am trying to do, but that does not work, is:

    Redirect 301 /index.php?main_page=index&cPath=28 http://www.domain.com/index.php?page=shop.browse&category_id=28&option=com_virtuemart&Itemid=36

Indeed, that's the point where you need RewriteRule rather than Redirect[1].  If you have access to httpd.conf, you should also look at RewriteMap.

Can you point me at some examples of RewriteRule for what I'm trying to do above.  I've looked at the documentation at http://httpd.apache.org/docs/2.0/misc/rewriteguide.html, but don't see an example of this nature.  Or am I missing something obvious?

Regards,

Ian

[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux