Hi Josha,

Thanks for excellent advise; the following works:

RewriteCond %{REQUEST_URI} ^/Merchant2/merchant.mv [NC]
RewriteCond %{QUERY_STRING}
^Screen\=CTGY\&Store_Code=AWLAS\&Category_Code\=Abc+Xyz$
RewriteRule (.*)
http://www.sitename.com/index.php?action=view_user&user=2[R=301,L]

On 11/17/06, Darly Coupet <[EMAIL PROTECTED]> wrote:

Hi Josha,

Thanks for your patience and help.  I do not have access to a server and
the application that is serving the old url's.

I think it is a syntax issue, one old URL routed to one new URL.

> Old url
> 
http://www.sitename.com/Merchant2/merchant.mv?Screen=CTGY&Store_Code=AWLAS&Category_Code=Abc+Xyz

>
> New URL
> http://www.sitename.com/index.php?action=view_user&user=2

#Begin htaccess content
# htaccess is located is subfolder name Merchant2
# merchant.mv is located is subfolder name Merchant2

<IfModule mod_php4.c>
php_value session.use_trans_sid 0
</IfModule>

RewriteEngine On
RewriteBase /

RewriteCond %{QUERY_STRING}
^Screen=CTGY&Store_Code=AWLAS&Category_Code=Abc+Xyz$
RewriteRule merchant.mv
http://www.sitename.com/index.php?action=view_user&user=2 [R=301,L]

#End htaccess content

Darly

On 11/17/06, Joshua Slive <[EMAIL PROTECTED]> wrote:
>
> On 11/16/06, Darly Coupet <[EMAIL PROTECTED]> wrote:
> > I have also tried with quotes, same error message
> > RewriteLog "/usr/local/var/apache/logs/rewrite.log"
> >
> >
> > > your security could be compromised if the directory where logfiles
> are
> > stored is writable by anyone other than the user that starts the
> server.
> >
> > I am on a virtual host, Hosting provider is probably
> not  allowing  changes
> > to RewriteLog
> >
>
> Then install apache on your local server with as similar a config as
> possible, test and debug it there using the RewriteLog, then upload
> it.
>
> Sorry, but debugging mod_rewrite without the RewriteLog is like
> driving blindfolded.
>
> Joshua.
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server
> Project.
> See <URL: http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: [EMAIL PROTECTED]
>    "   from the digest: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to