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

#   Cart not working on subdomain

##

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

Less More

- Posts: 6
- Thank you received: 0
-
-

13 years 1 month ago [\#122548](#122548) by [Ruark1982](/forum/user/21075-ruark1982 "View Ruark1982's Profile")  *[Cart not working on subdomain](/forum/27-checkout/861826-cart-not-working-on-subdomain#122548 "-- url of the page with the problem -- :   jennings.innovationfile.com  -- HikaShop version -- : 1308282330 -- Joomla version -- : x.x -- PHP version -- : x.x.x -- Browser(s) name and version -- : Chrome -- Error-message(debug-mod must be tuned on) -- : Error&#95;message  Problem: the site is built on jennings.innovationfile.com, when adding to or taking away from the cart a 404 error appears. The url used when a product is added will be for example   jennings.innovationfile.com/kia/category/listing/19-alloys  then will go to   jennings.innovationfile.com/jennings/kia...ng/19-alloys?popup=1  It seems to be adding in the /jennings rather than going straight to KIA  Thanks")* was created by *[Ruark1982](/forum/user/21075-ruark1982 "View Ruark1982's Profile")*

-- url of the page with the problem -- : [ jennings.innovationfile.com](http://jennings.innovationfile.com)
-- HikaShop version -- : 1308282330
-- Joomla version -- : x.x
-- PHP version -- : x.x.x
-- Browser(s) name and version -- : Chrome
-- Error-message(debug-mod must be tuned on) -- : Error_message

Problem: the site is built on jennings.innovationfile.com, when adding to or taking away from the cart a 404 error appears. The url used when a product is added will be for example [ jennings.innovationfile.com/kia/category/listing/19-alloys](http://jennings.innovationfile.com/kia/category/listing/19-alloys) then will go to [ jennings.innovationfile.com/jennings/kia...ng/19-alloys?popup=1](http://jennings.innovationfile.com/jennings/kia/category/listing/19-alloys?popup=1)

It seems to be adding in the /jennings rather than going straight to KIA

Thanks

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg2MTgyNi1jYXJ0LW5vdC13b3JraW5nLW9uLXN1YmRvbWFpbj90bXBsPW1hcmtkb3du) 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?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86320
- Thank you received: 14276
-
-

13 years 1 month ago [\#122564](#122564) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Cart not working on subdomain](/forum/27-checkout/861826-cart-not-working-on-subdomain#122564 "-- url of the page with the problem -- :   jennings.innovationfile.com  -- HikaShop version -- : 1308282330 -- Joomla version -- : x.x -- PHP version -- : x.x.x -- Browser(s) name and version -- : Chrome -- Error-message(debug-mod must be tuned on) -- : Error&#95;message  Problem: the site is built on jennings.innovationfile.com, when adding to or taking away from the cart a 404 error appears. The url used when a product is added will be for example   jennings.innovationfile.com/kia/category/listing/19-alloys  then will go to   jennings.innovationfile.com/jennings/kia...ng/19-alloys?popup=1  It seems to be adding in the /jennings rather than going straight to KIA  Thanks")*

It sounds like an issue with your joomla configuration.
Can you make sure that you don't have a live_site parameter in the configuration.php file of Joomla and if you do that it is the correct URL of your website ?

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

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

Less More

- Posts: 6
- Thank you received: 0
-
-

13 years 1 month ago [\#122569](#122569) by [Ruark1982](/forum/user/21075-ruark1982 "View Ruark1982's Profile")  Replied by *[Ruark1982](/forum/user/21075-ruark1982 "View Ruark1982's Profile")* on topic *[Cart not working on subdomain](/forum/27-checkout/861826-cart-not-working-on-subdomain#122569 "-- url of the page with the problem -- :   jennings.innovationfile.com  -- HikaShop version -- : 1308282330 -- Joomla version -- : x.x -- PHP version -- : x.x.x -- Browser(s) name and version -- : Chrome -- Error-message(debug-mod must be tuned on) -- : Error&#95;message  Problem: the site is built on jennings.innovationfile.com, when adding to or taking away from the cart a 404 error appears. The url used when a product is added will be for example   jennings.innovationfile.com/kia/category/listing/19-alloys  then will go to   jennings.innovationfile.com/jennings/kia...ng/19-alloys?popup=1  It seems to be adding in the /jennings rather than going straight to KIA  Thanks")*

Hello thank you for the prompt reply

I'm a bit new to joomla but I think I found the line:

public $live_site = '[ jennings.innovationfile.com/](http://jennings.innovationfile.com/)';

is that correct?

Thanks

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

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

Less More

- Posts: 6
- Thank you received: 0
-
-

13 years 1 month ago [\#122586](#122586) by [Ruark1982](/forum/user/21075-ruark1982 "View Ruark1982's Profile")  Replied by *[Ruark1982](/forum/user/21075-ruark1982 "View Ruark1982's Profile")* on topic *[Cart not working on subdomain](/forum/27-checkout/861826-cart-not-working-on-subdomain#122586 "-- url of the page with the problem -- :   jennings.innovationfile.com  -- HikaShop version -- : 1308282330 -- Joomla version -- : x.x -- PHP version -- : x.x.x -- Browser(s) name and version -- : Chrome -- Error-message(debug-mod must be tuned on) -- : Error&#95;message  Problem: the site is built on jennings.innovationfile.com, when adding to or taking away from the cart a 404 error appears. The url used when a product is added will be for example   jennings.innovationfile.com/kia/category/listing/19-alloys  then will go to   jennings.innovationfile.com/jennings/kia...ng/19-alloys?popup=1  It seems to be adding in the /jennings rather than going straight to KIA  Thanks")*

I have tried removing the variable and it still behaves in the same way

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

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

Less More

- Posts: 6
- Thank you received: 0
-
-

13 years 1 month ago [\#122740](#122740) by [Ruark1982](/forum/user/21075-ruark1982 "View Ruark1982's Profile")  Replied by *[Ruark1982](/forum/user/21075-ruark1982 "View Ruark1982's Profile")* on topic *[Cart not working on subdomain](/forum/27-checkout/861826-cart-not-working-on-subdomain#122740 "-- url of the page with the problem -- :   jennings.innovationfile.com  -- HikaShop version -- : 1308282330 -- Joomla version -- : x.x -- PHP version -- : x.x.x -- Browser(s) name and version -- : Chrome -- Error-message(debug-mod must be tuned on) -- : Error&#95;message  Problem: the site is built on jennings.innovationfile.com, when adding to or taking away from the cart a 404 error appears. The url used when a product is added will be for example   jennings.innovationfile.com/kia/category/listing/19-alloys  then will go to   jennings.innovationfile.com/jennings/kia...ng/19-alloys?popup=1  It seems to be adding in the /jennings rather than going straight to KIA  Thanks")*

It doesn't seem to have this issue on the checkout page

Any help would be gratefully received so I don't need to setup 250 redirects!

Thanks

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

13 years 1 month ago [\#122763](#122763) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Cart not working on subdomain](/forum/27-checkout/861826-cart-not-working-on-subdomain#122763 "-- url of the page with the problem -- :   jennings.innovationfile.com  -- HikaShop version -- : 1308282330 -- Joomla version -- : x.x -- PHP version -- : x.x.x -- Browser(s) name and version -- : Chrome -- Error-message(debug-mod must be tuned on) -- : Error&#95;message  Problem: the site is built on jennings.innovationfile.com, when adding to or taking away from the cart a 404 error appears. The url used when a product is added will be for example   jennings.innovationfile.com/kia/category/listing/19-alloys  then will go to   jennings.innovationfile.com/jennings/kia...ng/19-alloys?popup=1  It seems to be adding in the /jennings rather than going straight to KIA  Thanks")*

Hi,

I tried to take a look at your website but I don't understand how you configured your website to have such problem.
I guess that otherwise asking you to check all your HikaShop, your menus and Joomla configuration, the best will be to have an access to your backend because there is so much possibilities and I don't even understand how you did this.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

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

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

Less More

- Posts: 6
- Thank you received: 0
-
-

13 years 1 month ago [\#122788](#122788) by [Ruark1982](/forum/user/21075-ruark1982 "View Ruark1982's Profile")  Replied by *[Ruark1982](/forum/user/21075-ruark1982 "View Ruark1982's Profile")* on topic *[Cart not working on subdomain](/forum/27-checkout/861826-cart-not-working-on-subdomain#122788 "-- url of the page with the problem -- :   jennings.innovationfile.com  -- HikaShop version -- : 1308282330 -- Joomla version -- : x.x -- PHP version -- : x.x.x -- Browser(s) name and version -- : Chrome -- Error-message(debug-mod must be tuned on) -- : Error&#95;message  Problem: the site is built on jennings.innovationfile.com, when adding to or taking away from the cart a 404 error appears. The url used when a product is added will be for example   jennings.innovationfile.com/kia/category/listing/19-alloys  then will go to   jennings.innovationfile.com/jennings/kia...ng/19-alloys?popup=1  It seems to be adding in the /jennings rather than going straight to KIA  Thanks")*

Access sent on PM

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

13 years 1 month ago [\#122791](#122791) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Cart not working on subdomain](/forum/27-checkout/861826-cart-not-working-on-subdomain#122791 "-- url of the page with the problem -- :   jennings.innovationfile.com  -- HikaShop version -- : 1308282330 -- Joomla version -- : x.x -- PHP version -- : x.x.x -- Browser(s) name and version -- : Chrome -- Error-message(debug-mod must be tuned on) -- : Error&#95;message  Problem: the site is built on jennings.innovationfile.com, when adding to or taking away from the cart a 404 error appears. The url used when a product is added will be for example   jennings.innovationfile.com/kia/category/listing/19-alloys  then will go to   jennings.innovationfile.com/jennings/kia...ng/19-alloys?popup=1  It seems to be adding in the /jennings rather than going straight to KIA  Thanks")*

Hi,

Thanks for the access.
There is a problem with the "hikashop_currentURL" function which does not return the right url.
It looks like the PHP variable $_SERVER["REDIRECT_URL"] does not contains the right value. But the $_SERVER["REQUEST_URI"] does.

In order to fix it directly, I recommend you to edit the HikaShop helper file ( administrator/components/com_hikashop/helper/helper.php ) and replace Code:

if(!empty($_SERVER["REDIRECT_URL"]) &amp;&amp; preg_match('#.*index\.php$#',$_SERVER["REDIRECT_URL"]) &amp;&amp; empty($_SERVER['QUERY_STRING'])&amp;&amp;empty($_SERVER['REDIRECT_QUERY_STRING']) &amp;&amp; !empty($_SERVER["REQUEST_URI"])){ $requestUri = $_SERVER["REQUEST_URI"]; }elseif(!empty($_SERVER["REDIRECT_URL"]) &amp;&amp; (isset($_SERVER['QUERY_STRING'])&#124;&#124;isset($_SERVER['REDIRECT_QUERY_STRING']))){ $requestUri = $_SERVER["REDIRECT_URL"]; if (!empty($_SERVER['REDIRECT_QUERY_STRING'])) $requestUri = rtrim($requestUri,'/').'?'.$_SERVER['REDIRECT_QUERY_STRING']; elseif (!empty($_SERVER['QUERY_STRING'])) $requestUri = rtrim($requestUri,'/').'?'.$_SERVER['QUERY_STRING']; }elseif(isset($_SERVER["REQUEST_URI"])){ $requestUri = $_SERVER["REQUEST_URI"]; }else{ $requestUri = $_SERVER['PHP_SELF']; if (!empty($_SERVER['QUERY_STRING'])) $requestUri = rtrim($requestUri,'/').'?'.$_SERVER['QUERY_STRING']; }

By Code:

$requestUri = $_SERVER["REQUEST_URI"];

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

The following user(s) said Thank You: [Ruark1982](/forum/user/21075-ruark1982 "View Ruark1982's Profile")

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

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

Less More

- Posts: 6
- Thank you received: 0
-
-

13 years 1 month ago [\#122796](#122796) by [Ruark1982](/forum/user/21075-ruark1982 "View Ruark1982's Profile")  Replied by *[Ruark1982](/forum/user/21075-ruark1982 "View Ruark1982's Profile")* on topic *[Cart not working on subdomain](/forum/27-checkout/861826-cart-not-working-on-subdomain#122796 "-- url of the page with the problem -- :   jennings.innovationfile.com  -- HikaShop version -- : 1308282330 -- Joomla version -- : x.x -- PHP version -- : x.x.x -- Browser(s) name and version -- : Chrome -- Error-message(debug-mod must be tuned on) -- : Error&#95;message  Problem: the site is built on jennings.innovationfile.com, when adding to or taking away from the cart a 404 error appears. The url used when a product is added will be for example   jennings.innovationfile.com/kia/category/listing/19-alloys  then will go to   jennings.innovationfile.com/jennings/kia...ng/19-alloys?popup=1  It seems to be adding in the /jennings rather than going straight to KIA  Thanks")*

Thanks very much

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg2MTgyNi1jYXJ0LW5vdC13b3JraW5nLW9uLXN1YmRvbWFpbj90bXBsPW1hcmtkb3du) 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.092 seconds

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

[](#top)
