Re: Rewriting

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

 



That s an idea Frank thank you. I try it and come right back.




Membre-Fondateur et Trésorier de l'ANEÏST 
{Association Nationale des Entreprises Innovantes Industrielles Scientifiques et Technologiques}



Le jeu. 27 juin 2019 à 13:55, Frank <thumbs@xxxxxxxxxx> a écrit :
I would use the rewrite log to debug, as a starting point. There are
many external factors that could influence (or derail) this scenario.

On 27/06/19 04:45 AM, Ghalem Ouadjed wrote:
> Hello, at this day i didn t find the answer to the following question :
>
> RewriteRule ^that-and-that$  talent\.php\?id=(.+)[E=BREAK:1,L]
> RewriteCond     %{ENV:REDIRECT_BREAK}     !^1$
> RewriteCond     %{QUERY_STRING}   ^id=([0-9]+)$ [NC]
>
> RewriteRule ^this\.php$ /that-and-that [QSD,R=301,L]
>
> This code works actually but it doesn t display the right product. I
> found my php var_dump display this info ...["QUERY_STRING"]=> string(20)
> "id=(.+)[E=BREAK:1,L]. ... and my http header tells me that the 301
> works good and the url /that-and-thatworks too.
>
> I would like to precise that even if i had a /$1 after my rewriting url,
> i can t get the right product description.
>
> I have to build this htaccess because each product description is in a
> one page so this is a duplicate content. My aim is to declare
> /that-and-that as the canonical page for my product descriptions.
>
> Thank you very much in advance for your time.
> Ghalem
>
> Membre-Fondateur et Trésorier de l'ANEÏST - aneist.com <http://aneist.com>
> {Association Nationale des Entreprises Innovantes Industrielles
> Scientifiques et Technologiques}
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-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