Re: https://www.berkshirefurniture.com Issue on .htaccess rule.

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

 



Hi Katz,

Yes i active access logs, now which date i see the log.

Problem Statement : Few Products redirects to Cart page.


Cart Page URL :  https://www.berkshirefurniture.com/cart/
Cart Page htaccess redirects rule : RewriteRule ^cart(.*)$ cart.php

Products:
1. Click on : https://www.berkshirefurniture.com/search?q=carter&otracker=on
2. It opens Product Gallery.
3. Click on any first three product and normally it redirects to product details page but it shows cart page content.

Product page Url:
https://www.berkshirefurniture.com/carter-mirrored-hall-chest/p/U0h8Y2FydGVy
https://www.berkshirefurniture.com/carter-motion-chair/p/U0h8Y2FydGVy
https://www.berkshirefurniture.com/carter-upholstered-bed/p/U0h8Y2FydGVy

Product Page htaccess redirects rule :
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^/]*)/p/([^/]*)$ product-details.php?slug=$1&itmpath=$3 [L,NC]

First four letter of products url "carter" to "cart" matched with the cart page link and that's the reason it moved to the cart page.

Sincerely
---------------------------------------------------------
Rajib Karmakar

Creative Web Logo Technologies
Mobile: +919874704940 
Skype: creative.web.logo
© 2008-2017 Creative Web Logo Technologies.

On Sun, Jan 22, 2017 at 6:58 AM, Yehuda Katz <yehuda@xxxxxxxxxx> wrote:
It looks more likely to be a problem with your PHP script. When I searched your website for the product in your URL, I found a different URL: https://www.berkshirefurniture.com/carter-upholstered-bed/p/U0h8Y2FydGVyIHVwaG9sc3RlcmVkIGJlZA==

Check your access logs and/or turn on rewrite logging to see what is going on.

- Y


On Sat, Jan 21, 2017 at 8:52 AM, Rajib Karmakar <creativeweblogo@xxxxxxxxx> wrote:
Good morning Team,


Below 2 rule i used for 2 different pages but 2nd URL when i click then it nothing display any products, it show cart page. I need help regard this issue.



RewriteRule ^cart(.*)$ cart.php





## For showing leaf sub category of item
RewriteCond %{REQUEST_URI} !^/([^/]*)/p
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^/]*)/([^/]*)/([^/]*)$ leafsub-category-gallery.php?slug=$1&subcat=$2&leafsubcat=$3 [L,NC]







SystemLinux gator4245.hostgator.com 3.12.65-188.ELK6.x86_64 #1 SMP Thu Oct 20 23:27:48 CDT 2016 x86_64
Build DateOct 5 2015 15:33:22
Configure Command'./configure' '--with-libdir=lib64' '--enable-bcmath' '--enable-calendar' '--enable-dbase' '--enable-exif' '--enable-' '--enable-ftp' '--enable-gd-native-ttf' '--enable-libxml' '--enable-mbstring' '--enable-pdo' '--enable-soap' '--enable-sockets' '--enable-sqlite-utf8' '--enable-wddx' '--enable-zip' '--prefix=/opt/php54' '--with-bz2' '--with-curl' '--with-freetype-dir' '--with-gd' '--with-gettext' '--with-imap=/opt/php_with_imap_client/' '--with-imap-ssl' '--with-mcrypt=/opt/libmcrypt' '--with-kerberos' '--with-jpeg-dir=/usr' '--with-xsl' '--with-mhash' '--with-mssql' '--with-mysql=/usr' '--with-mysql-sock=/var/lib/mysql/mysql.sock' '--with-mysqli=/usr/bin/mysql_config' '--with-openssl' '--with-pdo-mysql=/usr' '--with-png-dir' '--with-pspell' '--with-tidy' '--with-unixODBC=/usr' '--with-xmlrpc' '--with-zlib' '--enable-intl' '--with-gmp' '--with-sqlite'
Server APICGI/FastCGI
Virtual Directory Supportdisabled
Configuration File (php.ini) Path/opt/php54/lib
Loaded Configuration File/opt/php54/lib/php.ini
Scan this dir for additional .ini files(none)
Additional .ini files parsed(none)
PHP API20100412
PHP Extension20100525
Zend Extension220100525
Zend Extension BuildAPI220100525,NTS
PHP Extension BuildAPI20100525,NTS
Debug Buildno
Thread Safetydisabled
Zend Signal Handlingdisabled
Zend Memory Managerenabled
Zend Multibyte Supportprovided by mbstring
IPv6 Supportenabled
DTrace Supportdisabled
Registered PHP Streamshttps, ftps, compress.zlib, compress.bzip2, php, file, glob, data, http, ftp, phar, zip
Registered Stream Socket Transportstcp, udp, unix, udg, ssl, sslv3, sslv2, tls
Registered Stream Filterszlib.*, bzip2.*, convert.iconv.*, mcrypt.*, mdecrypt.*, string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, consumed, dechunk


Sincerely
---------------------------------------------------------
Rajib Karmakar

Creative Web Logo Technologies
Mobile: +919874704940 
Skype: creative.web.logo
© 2008-2017 Creative Web Logo Technologies.



[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