[Skip to main content](#vessel-content)

#   Problem with pagination in listing

##

- **[quangnguyen](/forum/user/40354-quangnguyen "View quangnguyen's Profile")**
- [![quangnguyen's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/40354-quangnguyen "View quangnguyen's Profile") Topic Author
- [ Offline](/forum/user/40354-quangnguyen)

Less More

- Posts: 15
- Thank you received: 0
-
-

10 years 8 months ago [\#228173](#228173) by [quangnguyen](/forum/user/40354-quangnguyen "View quangnguyen's Profile")  *[Problem with pagination in listing](/forum/3-bug-report/881962-problem-with-pagination-in-listing#228173 "-- url of the page with the problem -- :   ilaza.vn/san-pham-ban-chay.html  -- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.8  Hi! i have a problem with pagination in product listing, categories listing and vendor listing when turn on SEF urls. when i redirect from 1st page to another page, my url will duplicate domain and show 404 error. my url is:   ilaza.vn/san-pham-ban-chay.html  but when i try to paging to another page, it will become:http://ilaza.vn/ilaza.vn/san-pham-ban-chay.html however, when i turn of SEF url, pagination still active normally! please help me to resolve this problem. thanks so much! :side: :side:")* was created by *[quangnguyen](/forum/user/40354-quangnguyen "View quangnguyen's Profile")*

-- url of the page with the problem -- : [ ilaza.vn/san-pham-ban-chay.html](http://ilaza.vn/san-pham-ban-chay.html)
-- HikaShop version -- : 2.6.0
-- Joomla version -- : 3.4.8

Hi!
i have a problem with pagination in product listing, categories listing and vendor listing when turn on SEF urls.
when i redirect from 1st page to another page, my url will duplicate domain and show 404 error.
my url is: [ ilaza.vn/san-pham-ban-chay.html](http://ilaza.vn/san-pham-ban-chay.html)
but when i try to paging to another page, it will become:http://ilaza.vn/ilaza.vn/san-pham-ban-chay.html
however, when i turn of SEF url, pagination still active normally!
please help me to resolve this problem.
thanks so much! :side: :side:

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC84ODE5NjItcHJvYmxlbS13aXRoLXBhZ2luYXRpb24taW4tbGlzdGluZz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Philip](/forum/user/34318-philip "View Philip's Profile")**
- [![Philip's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar34318_2015-11-18-2.png)](/forum/user/34318-philip "View Philip's Profile")
- [ Offline](/forum/user/34318-philip)

Less More

- Posts: 4820
- Thank you received: 654
-
-

10 years 8 months ago -  10 years 8 months ago [\#228185](#228185) by [Philip](/forum/user/34318-philip "View Philip's Profile")  Replied by *[Philip](/forum/user/34318-philip "View Philip's Profile")* on topic *[Problem with pagination in listing](/forum/3-bug-report/881962-problem-with-pagination-in-listing#228185 "-- url of the page with the problem -- :   ilaza.vn/san-pham-ban-chay.html  -- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.8  Hi! i have a problem with pagination in product listing, categories listing and vendor listing when turn on SEF urls. when i redirect from 1st page to another page, my url will duplicate domain and show 404 error. my url is:   ilaza.vn/san-pham-ban-chay.html  but when i try to paging to another page, it will become:http://ilaza.vn/ilaza.vn/san-pham-ban-chay.html however, when i turn of SEF url, pagination still active normally! please help me to resolve this problem. thanks so much! :side: :side:")*

Hello,

I'm quite astonished because I use your Url: **ilaza.vn/san-pham-ban-chay.html AND** click here to move to your listing page and no 404 error...(see image)

[ ![listing&#95;url&#95;2016-01-29.png](/forum/attachment/29150) ](/forum/attachment/29150 "...2016-01-29.png")

And no error page...

[ ![listing&#95;url2&#95;2016-01-29.png](/forum/attachment/29151) ](/forum/attachment/29151 "...2016-01-29.png")

So, 2 possibilties:
- You success to solve your issue, congratulation ![:)](/media/kunena/emoticons/8.png ":)")
**OR**
- I don't understand your issue...And in this case sorry, but can you explain with more details and maybe screenshot.

Regards,

- [ ![listing&#95;url&#95;2016-01-29.png](/forum/attachment/29150) ](/forum/attachment/29150 "...2016-01-29.png") [ ](/forum/attachment/29150?download=1 "...2016-01-29.png")
- [ ![listing&#95;url2&#95;2016-01-29.png](/forum/attachment/29151) ](/forum/attachment/29151 "...2016-01-29.png") [ ](/forum/attachment/29151?download=1 "...2016-01-29.png")

Last edit: 10 years 8 months ago by [Philip](/forum/user/34318-philip "View Philip's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC84ODE5NjItcHJvYmxlbS13aXRoLXBhZ2luYXRpb24taW4tbGlzdGluZz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[quangnguyen](/forum/user/40354-quangnguyen "View quangnguyen's Profile")**
- [![quangnguyen's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/40354-quangnguyen "View quangnguyen's Profile") Topic Author
- [ Offline](/forum/user/40354-quangnguyen)

Less More

- Posts: 15
- Thank you received: 0
-
-

10 years 8 months ago [\#228253](#228253) by [quangnguyen](/forum/user/40354-quangnguyen "View quangnguyen's Profile")  Replied by *[quangnguyen](/forum/user/40354-quangnguyen "View quangnguyen's Profile")* on topic *[Problem with pagination in listing](/forum/3-bug-report/881962-problem-with-pagination-in-listing#228253 "-- url of the page with the problem -- :   ilaza.vn/san-pham-ban-chay.html  -- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.8  Hi! i have a problem with pagination in product listing, categories listing and vendor listing when turn on SEF urls. when i redirect from 1st page to another page, my url will duplicate domain and show 404 error. my url is:   ilaza.vn/san-pham-ban-chay.html  but when i try to paging to another page, it will become:http://ilaza.vn/ilaza.vn/san-pham-ban-chay.html however, when i turn of SEF url, pagination still active normally! please help me to resolve this problem. thanks so much! :side: :side:")*

sorry philips, my English is not good, so i apologize when you don't understand,to easier, let me explain with image :pinch:
i have alot of product, so i want to pagination, but when i click to number in pagination like this image

[ ![p1.png](/forum/attachment/29165) ](/forum/attachment/29165 "p1.png")

and then, it showing error

[ ![p2.png](/forum/attachment/29166) ](/forum/attachment/29166 "p2.png")

- [ ![p1.png](/forum/attachment/29165) ](/forum/attachment/29165 "p1.png") [ ](/forum/attachment/29165?download=1 "p1.png")
- [ ![p2.png](/forum/attachment/29166) ](/forum/attachment/29166 "p2.png") [ ](/forum/attachment/29166?download=1 "p2.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC84ODE5NjItcHJvYmxlbS13aXRoLXBhZ2luYXRpb24taW4tbGlzdGluZz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Philip](/forum/user/34318-philip "View Philip's Profile")**
- [![Philip's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar34318_2015-11-18-2.png)](/forum/user/34318-philip "View Philip's Profile")
- [ Offline](/forum/user/34318-philip)

Less More

- Posts: 4820
- Thank you received: 654
-
-

10 years 8 months ago -  10 years 8 months ago [\#228372](#228372) by [Philip](/forum/user/34318-philip "View Philip's Profile")  Replied by *[Philip](/forum/user/34318-philip "View Philip's Profile")* on topic *[Problem with pagination in listing](/forum/3-bug-report/881962-problem-with-pagination-in-listing#228372 "-- url of the page with the problem -- :   ilaza.vn/san-pham-ban-chay.html  -- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.8  Hi! i have a problem with pagination in product listing, categories listing and vendor listing when turn on SEF urls. when i redirect from 1st page to another page, my url will duplicate domain and show 404 error. my url is:   ilaza.vn/san-pham-ban-chay.html  but when i try to paging to another page, it will become:http://ilaza.vn/ilaza.vn/san-pham-ban-chay.html however, when i turn of SEF url, pagination still active normally! please help me to resolve this problem. thanks so much! :side: :side:")*

Hello,

Ok right now, I understand try to Turn **off** the "**force canonical URLs on listings**", and see if it help!
Other you can try is to update your HikaShop version because I see that your are on **2.6**, and the **2.6.1** have a lot of bug fix.
If you have some overrides try to turn them off

If nothing works, sends us backend references via our "**Contact Us**" form, and use **this** topic subject to fill your **message subject**.

Regards,

Last edit: 10 years 8 months ago by [Philip](/forum/user/34318-philip "View Philip's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC84ODE5NjItcHJvYmxlbS13aXRoLXBhZ2luYXRpb24taW4tbGlzdGluZz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14266
-
-

10 years 8 months ago [\#228751](#228751) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Problem with pagination in listing](/forum/3-bug-report/881962-problem-with-pagination-in-listing#228751 "-- url of the page with the problem -- :   ilaza.vn/san-pham-ban-chay.html  -- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.8  Hi! i have a problem with pagination in product listing, categories listing and vendor listing when turn on SEF urls. when i redirect from 1st page to another page, my url will duplicate domain and show 404 error. my url is:   ilaza.vn/san-pham-ban-chay.html  but when i try to paging to another page, it will become:http://ilaza.vn/ilaza.vn/san-pham-ban-chay.html however, when i turn of SEF url, pagination still active normally! please help me to resolve this problem. thanks so much! :side: :side:")*

Hi,

From what I can see, the problem is that you're missing the http:// in the live_site parameter of the configuration.php file of your Joomla. Could you open it and check that the URL of your website is correct in the live_site parameter there ?

The following user(s) said Thank You: [quangnguyen](/forum/user/40354-quangnguyen "View quangnguyen's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC84ODE5NjItcHJvYmxlbS13aXRoLXBhZ2luYXRpb24taW4tbGlzdGluZz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[quangnguyen](/forum/user/40354-quangnguyen "View quangnguyen's Profile")**
- [![quangnguyen's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/40354-quangnguyen "View quangnguyen's Profile") Topic Author
- [ Offline](/forum/user/40354-quangnguyen)

Less More

- Posts: 15
- Thank you received: 0
-
-

10 years 8 months ago -  10 years 8 months ago [\#228843](#228843) by [quangnguyen](/forum/user/40354-quangnguyen "View quangnguyen's Profile")  Replied by *[quangnguyen](/forum/user/40354-quangnguyen "View quangnguyen's Profile")* on topic *[Problem with pagination in listing](/forum/3-bug-report/881962-problem-with-pagination-in-listing#228843 "-- url of the page with the problem -- :   ilaza.vn/san-pham-ban-chay.html  -- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.8  Hi! i have a problem with pagination in product listing, categories listing and vendor listing when turn on SEF urls. when i redirect from 1st page to another page, my url will duplicate domain and show 404 error. my url is:   ilaza.vn/san-pham-ban-chay.html  but when i try to paging to another page, it will become:http://ilaza.vn/ilaza.vn/san-pham-ban-chay.html however, when i turn of SEF url, pagination still active normally! please help me to resolve this problem. thanks so much! :side: :side:")*

Hello Nicolas!
I have check the 'live_site' parameter in my configuration.php
firstly, my 'live_site' parameter is:

> public $live\_site = '';

and then, i change to

> public $live\_site = '[ ilaza.vn/](http://ilaza.vn/)';

but still issues

Last edit: 10 years 8 months ago by [quangnguyen](/forum/user/40354-quangnguyen "View quangnguyen's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC84ODE5NjItcHJvYmxlbS13aXRoLXBhZ2luYXRpb24taW4tbGlzdGluZz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14266
-
-

10 years 8 months ago [\#228863](#228863) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Problem with pagination in listing](/forum/3-bug-report/881962-problem-with-pagination-in-listing#228863 "-- url of the page with the problem -- :   ilaza.vn/san-pham-ban-chay.html  -- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.8  Hi! i have a problem with pagination in product listing, categories listing and vendor listing when turn on SEF urls. when i redirect from 1st page to another page, my url will duplicate domain and show 404 error. my url is:   ilaza.vn/san-pham-ban-chay.html  but when i try to paging to another page, it will become:http://ilaza.vn/ilaza.vn/san-pham-ban-chay.html however, when i turn of SEF url, pagination still active normally! please help me to resolve this problem. thanks so much! :side: :side:")*

Hi,

Ok, I've looked deeper into it and understand the problem. I've added a patch on your website which fixes the problem. We've also added that fix on our end for next version of HikaShop as it only happens on some really specific server configurations.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC84ODE5NjItcHJvYmxlbS13aXRoLXBhZ2luYXRpb24taW4tbGlzdGluZz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[quangnguyen](/forum/user/40354-quangnguyen "View quangnguyen's Profile")**
- [![quangnguyen's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/40354-quangnguyen "View quangnguyen's Profile") Topic Author
- [ Offline](/forum/user/40354-quangnguyen)

Less More

- Posts: 15
- Thank you received: 0
-
-

10 years 8 months ago -  10 years 8 months ago [\#228954](#228954) by [quangnguyen](/forum/user/40354-quangnguyen "View quangnguyen's Profile")  Replied by *[quangnguyen](/forum/user/40354-quangnguyen "View quangnguyen's Profile")* on topic *[Problem with pagination in listing](/forum/3-bug-report/881962-problem-with-pagination-in-listing#228954 "-- url of the page with the problem -- :   ilaza.vn/san-pham-ban-chay.html  -- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.8  Hi! i have a problem with pagination in product listing, categories listing and vendor listing when turn on SEF urls. when i redirect from 1st page to another page, my url will duplicate domain and show 404 error. my url is:   ilaza.vn/san-pham-ban-chay.html  but when i try to paging to another page, it will become:http://ilaza.vn/ilaza.vn/san-pham-ban-chay.html however, when i turn of SEF url, pagination still active normally! please help me to resolve this problem. thanks so much! :side: :side:")*

thank you so much Nicolas, but can you point me what is that problem? and how i can fix it? i want to know how to fix, because there are same problem in vendor list, category list and filter now. :woohoo: :woohoo:
look like you add a new fix in product listing_div

Last edit: 10 years 8 months ago by [quangnguyen](/forum/user/40354-quangnguyen "View quangnguyen's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC84ODE5NjItcHJvYmxlbS13aXRoLXBhZ2luYXRpb24taW4tbGlzdGluZz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14266
-
-

10 years 8 months ago [\#228992](#228992) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Problem with pagination in listing](/forum/3-bug-report/881962-problem-with-pagination-in-listing#228992 "-- url of the page with the problem -- :   ilaza.vn/san-pham-ban-chay.html  -- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.8  Hi! i have a problem with pagination in product listing, categories listing and vendor listing when turn on SEF urls. when i redirect from 1st page to another page, my url will duplicate domain and show 404 error. my url is:   ilaza.vn/san-pham-ban-chay.html  but when i try to paging to another page, it will become:http://ilaza.vn/ilaza.vn/san-pham-ban-chay.html however, when i turn of SEF url, pagination still active normally! please help me to resolve this problem. thanks so much! :side: :side:")*

Hi,

Move the code: Code:

case 'REQUEST_URI': $requestUri = $_SERVER["REQUEST_URI"]; if (!empty($_SERVER["REDIRECT_URL"]) &amp;&amp; !empty($_SERVER['REDIRECT_QUERY_STRING'])) $requestUri = rtrim($requestUri,'/').'?'.$_SERVER['REDIRECT_QUERY_STRING']; break; case 'REDIRECT_URL': $requestUri = $_SERVER["REQUEST_URI"]; if (!empty($_SERVER['REDIRECT_QUERY_STRING'])) $requestUri = rtrim($requestUri,'/').'?'.$_SERVER['REDIRECT_QUERY_STRING']; elseif (!empty($_SERVER['QUERY_STRING'])) $requestUri = rtrim($requestUri,'/').'?'.$_SERVER['QUERY_STRING']; break;

just after the code: Code:

$config = hikashop_config(); $mode = $config-&gt;get('server_current_url_mode','REQUEST_URI'); switch($mode){

in the file administrator/components/com_hikashop/helpers/helper.php and that should fix it everywhere.

The following user(s) said Thank You: [quangnguyen](/forum/user/40354-quangnguyen "View quangnguyen's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC84ODE5NjItcHJvYmxlbS13aXRoLXBhZ2luYXRpb24taW4tbGlzdGluZz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop- Install &amp; Update- Product &amp; Category Display- Content Creation- Sales and Orders- - Orders management- - Reports &amp; Statistics- Customers- Checkout- Payment Methods- Shipping Methods- Import &amp; Export (CSV, XLS…)- Specific Features- - Affilation- - Taxes- - Wishlist- - Vote- - Carousel &amp; Slider- - Mass Actions- - Filters &amp; Search- - Discount &amp; Coupon- - Feature Request- Integrations- Showcase- General Talk about HikaShop- Development- - HikaShop 3.0 Beta- Translation- Commercial Jobs HikaShop Components- HikaMarket- - Market: Feature requests- - Market: How to?- - Market: Bug Report- HikaSerial- - General talk about HikaSerial- - Serial: Bug Report- - Serial: How to?- - Support en Français de HikaSerial (French Support)- - HikaSubscription- HikaAuction- - Auction: Feature requests- - Auction: How to?- - Auction: Bug report Hikashop around the world- Support en Français (French Support)- Russian- - FAQ. Курс выживания с Hikashop. Частые вопросы и о- - Расширения Hikashop- - Наши сайты на Hikashop- 日本語版サポート(Japanese Support)- Thai- German Archives- Bug Report- How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.322 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)

[](#top)
