Forum Moderators: phranque
I use this line:
RewriteRule product/([^/]*)$ /search/product.php?pname=$1
in my .htaccess to convert /search/products.php?pname=Digital%20Cameras to /search/products/Digital%20Cameras/
the problem is the ending "/" should be in the end of the address or it wont go to the webpage. google , msn
and other search engines dont have any problem but yahoo doesnt put the "/" in the end of the address so
when you click the address on yahoo's search results you get an error instead of going to the webpage.
how can I write my .htaccess so the existance of the ending "/" wont alter the result?
thanks
[edited by: jdMorgan at 5:23 am (utc) on Nov. 22, 2005]
[edit reason] Formatting. [/edit]
Welcome to WebmasterWorld!
Please check the code you posted above. It does not agree with your description of the problem, since it will not accept a trailing slash. In other words, with this code, Yahoo URLs with no "/" would work, and others with the slash should fail.
It will be hard to discuss the problem if the example code does not match the described problem.
Jim