Re: [users@httpd] Rewriterule syntax not working

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

 



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=""> [R=301,L]

On 11/17/06, Darly Coupet <apache@xxxxxxxx> 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=""


#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="" [R=301,L]

#End htaccess content

Darly


On 11/17/06, Joshua Slive <joshua@xxxxxxxx> wrote:
On 11/16/06, Darly Coupet <apache@xxxxxxxx> 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: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx




[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