You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Rajib Karmakar <cr...@gmail.com> on 2017/01/21 13:52:37 UTC
[users@httpd] https://www.berkshirefurniture.com Issue on .htaccess rule.
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
https://www.berkshirefurniture.com/cart/
https://www.berkshirefurniture.com/carter-upholstered-bed/p/bmV3LWFycml2YWw=
## 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]
System Linux gator4245.hostgator.com 3.12.65-188.ELK6.x86_64 #1 SMP Thu Oct
20 23:27:48 CDT 2016 x86_64
Build Date Oct 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 API CGI/FastCGI
Virtual Directory Support disabled
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 API 20100412
PHP Extension 20100525
Zend Extension 220100525
Zend Extension Build API220100525,NTS
PHP Extension Build API20100525,NTS
Debug Build no
Thread Safety disabled
Zend Signal Handling disabled
Zend Memory Manager enabled
Zend Multibyte Support provided by mbstring
IPv6 Support enabled
DTrace Support disabled
Registered PHP Streams https, ftps, compress.zlib, compress.bzip2, php,
file, glob, data, http, ftp, phar, zip
Registered Stream Socket Transports tcp, udp, unix, udg, ssl, sslv3, sslv2,
tls
Registered Stream Filters zlib.*, bzip2.*, convert.iconv.*, mcrypt.*,
mdecrypt.*, string.rot13, string.toupper, string.tolower,
string.strip_tags, convert.*, consumed, dechunk
Sincerely
---------------------------------------------------------
Rajib Karmakar
Creative Web Logo Technologies
Website: http://www.creativeweblogo.com
Mobile: +919874704940
Skype: creative.web.logo
© 2008-2017 Creative Web Logo Technologies.
Re: [users@httpd] https://www.berkshirefurniture.com Issue on
.htaccess rule.
Posted by Rajib Karmakar <cr...@gmail.com>.
Good morning Team,
Is it possible using htaccess rewriting match the specific slug and forced
not to redirect it's default rules i.e it matched the full slug and
redirect to specific rule only.
Sincerely
---------------------------------------------------------
Rajib Karmakar
Creative Web Logo Technologies
Website: http://www.creativeweblogo.com
Mobile: +919874704940
Skype: creative.web.logo
© 2008-2017 Creative Web Logo Technologies.
On Mon, Jan 23, 2017 at 11:52 PM, Yann Ylavic <yl...@gmail.com> wrote:
> Hi,
>
> On Mon, Jan 23, 2017 at 11:20 AM, Rajib Karmakar
> <cr...@gmail.com> wrote:
> >
> > 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
>
> You could possibly require the final '/' here to avoid trailing match,
> something like:
> RewriteRule ^cart(/.*)?$ cart.php
>
> Regards,
> Yann.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>
Re: [users@httpd] https://www.berkshirefurniture.com Issue on
.htaccess rule.
Posted by Yann Ylavic <yl...@gmail.com>.
Hi,
On Mon, Jan 23, 2017 at 11:20 AM, Rajib Karmakar
<cr...@gmail.com> wrote:
>
> 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
You could possibly require the final '/' here to avoid trailing match,
something like:
RewriteRule ^cart(/.*)?$ cart.php
Regards,
Yann.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] https://www.berkshirefurniture.com Issue on
.htaccess rule.
Posted by Rajib Karmakar <cr...@gmail.com>.
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
Website: http://www.creativeweblogo.com
Mobile: +919874704940
Skype: creative.web.logo
© 2008-2017 Creative Web Logo Technologies.
On Sun, Jan 22, 2017 at 6:58 AM, Yehuda Katz <ye...@ymkatz.net> 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@gmail.com
> > 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
>>
>> https://www.berkshirefurniture.com/cart/
>>
>>
>>
>> https://www.berkshirefurniture.com/carter-upholstered-bed/p/
>> bmV3LWFycml2YWw=
>>
>> ## 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]
>>
>>
>>
>>
>>
>>
>>
>> System Linux gator4245.hostgator.com 3.12.65-188.ELK6.x86_64 #1 SMP Thu
>> Oct 20 23:27:48 CDT 2016 x86_64
>> Build Date Oct 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 API CGI/FastCGI
>> Virtual Directory Support disabled
>> 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 API 20100412
>> PHP Extension 20100525
>> Zend Extension 220100525
>> Zend Extension Build API220100525,NTS
>> PHP Extension Build API20100525,NTS
>> Debug Build no
>> Thread Safety disabled
>> Zend Signal Handling disabled
>> Zend Memory Manager enabled
>> Zend Multibyte Support provided by mbstring
>> IPv6 Support enabled
>> DTrace Support disabled
>> Registered PHP Streams https, ftps, compress.zlib, compress.bzip2, php,
>> file, glob, data, http, ftp, phar, zip
>> Registered Stream Socket Transports tcp, udp, unix, udg, ssl, sslv3,
>> sslv2, tls
>> Registered Stream Filters zlib.*, bzip2.*, convert.iconv.*, mcrypt.*,
>> mdecrypt.*, string.rot13, string.toupper, string.tolower,
>> string.strip_tags, convert.*, consumed, dechunk
>>
>>
>> Sincerely
>> ---------------------------------------------------------
>> Rajib Karmakar
>>
>> Creative Web Logo Technologies
>> Website: http://www.creativeweblogo.com
>> Mobile: +919874704940
>> Skype: creative.web.logo
>> © 2008-2017 Creative Web Logo Technologies.
>>
>
>
Re: [users@httpd] https://www.berkshirefurniture.com Issue on
.htaccess rule.
Posted by Yehuda Katz <ye...@ymkatz.net>.
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 <cr...@gmail.com>
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
>
> https://www.berkshirefurniture.com/cart/
>
>
>
> https://www.berkshirefurniture.com/carter-upholstered-bed/p/
> bmV3LWFycml2YWw=
>
> ## 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]
>
>
>
>
>
>
>
> System Linux gator4245.hostgator.com 3.12.65-188.ELK6.x86_64 #1 SMP Thu
> Oct 20 23:27:48 CDT 2016 x86_64
> Build Date Oct 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 API CGI/FastCGI
> Virtual Directory Support disabled
> 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 API 20100412
> PHP Extension 20100525
> Zend Extension 220100525
> Zend Extension Build API220100525,NTS
> PHP Extension Build API20100525,NTS
> Debug Build no
> Thread Safety disabled
> Zend Signal Handling disabled
> Zend Memory Manager enabled
> Zend Multibyte Support provided by mbstring
> IPv6 Support enabled
> DTrace Support disabled
> Registered PHP Streams https, ftps, compress.zlib, compress.bzip2, php,
> file, glob, data, http, ftp, phar, zip
> Registered Stream Socket Transports tcp, udp, unix, udg, ssl, sslv3,
> sslv2, tls
> Registered Stream Filters zlib.*, bzip2.*, convert.iconv.*, mcrypt.*,
> mdecrypt.*, string.rot13, string.toupper, string.tolower,
> string.strip_tags, convert.*, consumed, dechunk
>
>
> Sincerely
> ---------------------------------------------------------
> Rajib Karmakar
>
> Creative Web Logo Technologies
> Website: http://www.creativeweblogo.com
> Mobile: +919874704940
> Skype: creative.web.logo
> © 2008-2017 Creative Web Logo Technologies.
>