Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Products URL wrong

 
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)
 
Thread Tools Search this Thread
  #1  
Old 04-18-2017, 11:34 AM
 
Zack P. Zack P. is offline
 

Advanced Member
  
Join Date: Oct 2016
Posts: 94
 

Default Products URL wrong

We manually create URL for each product and get this in product description page:

Result: http://www.cardacc.com/at-erc-26a-3001-clamshell-prox-card.html

However if that link is clicked or entered browser opens site index page. By navigating through menus one can get into actual product page mentioned above:

http://www.cardacc.com/cart.php?target=product&product_id=50&category_id= 10

It's nothing like it suppose to be. We lose search engines rankings on such problem. What are we doing wrong here?
__________________
5.3.2.2 Business License
Reply With Quote
  #2  
Old 04-19-2017, 10:12 PM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

X-Guru
  
Join Date: Dec 2010
Posts: 6,373
 

Default Re: Products URL wrong

It looks that you have some problems with URL rewrites on your server.

Did you check this article with instructions on configuring URL rewrites?
http://kb.x-cart.com/en/general_setup/setting_up_seo-friendly_urls.html
__________________
Alex Solovev,
Qualiteam

---

User manual Video tutorials X-Cart FAQ

You are welcome to press "Thanks" button
if you find this post useful

Click here to learn how to apply patches

X-Cart Extensions
Reply With Quote
  #3  
Old 04-20-2017, 08:17 AM
 
Zack P. Zack P. is offline
 

Advanced Member
  
Join Date: Oct 2016
Posts: 94
 

Default Re: Products URL wrong

Enabled clean URLs and got this response:

We made a test request to URL and got the following result.
It means that your SEO-friendly URLs may not work properly after enabling.
Error code explanation
- - - - - - - - -
I just checked C panel. There is no Environment section described in article adn there is no httpd.conf file there

- - - - - - - - -
I still don't understand what server has to do with internal links? If part address is http://www.cardacc.com/at-erc-card.html
how that can go wrong
__________________
5.3.2.2 Business License
Reply With Quote
  #4  
Old 04-24-2017, 01:03 AM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

X-Guru
  
Join Date: Dec 2010
Posts: 6,373
 

Default Re: Products URL wrong

Just check with your hosting company how you can turn URL rewrites for your site.
Most likely it is something that they should enable in the server settings.
__________________
Alex Solovev,
Qualiteam

---

User manual Video tutorials X-Cart FAQ

You are welcome to press "Thanks" button
if you find this post useful

Click here to learn how to apply patches

X-Cart Extensions
Reply With Quote
  #5  
Old 04-24-2017, 04:19 PM
 
Zack P. Zack P. is offline
 

Advanced Member
  
Join Date: Oct 2016
Posts: 94
 

Default Re: Products URL wrong

WEB master tested server and got this back:

Yes, mod_rewrite is enabled by default :

[root@viking ~]# httpd -M | grep rewri
rewrite_module (shared)
[root@viking ~]#

httpd -M represents all activated modules in Apache and "grep rewri" filters out if mod_rewrite is enabled.

Should links work in both free and paid shopping cart versions?
__________________
5.3.2.2 Business License
Reply With Quote
  #6  
Old 04-25-2017, 12:50 AM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

X-Guru
  
Join Date: Dec 2010
Posts: 6,373
 

Default Re: Products URL wrong

Yes, Clean URLs should work for both the free and the paid licenses.

I'm not sure what else you should check. Usually, enabling mod_rewrite is all you are to do to enable Clean URLs on an Apache server.

Did you check this section too?
http://kb.x-cart.com/en/general_setup/setting_up_seo-friendly_urls.html#troubleshooting
It may be that your server settings prevent X-Cart from using its own .htaccess file (thus disabling mod_rewrite rules defined in it).
__________________
Alex Solovev,
Qualiteam

---

User manual Video tutorials X-Cart FAQ

You are welcome to press "Thanks" button
if you find this post useful

Click here to learn how to apply patches

X-Cart Extensions
Reply With Quote
  #7  
Old 04-26-2017, 05:22 AM
 
Zack P. Zack P. is offline
 

Advanced Member
  
Join Date: Oct 2016
Posts: 94
 

Default Re: Products URL wrong

Tried everything, even changing name of current .htpaccess and to bring in .htpaccess from our other site that works fine. Still no luck. I went to search for file .htaccess in C Panel root directory and found that file here:

/public_html/.htaccess
/public_html/xcart/.htaccess
/public_html/vendor/.htaccess
/public_html/etc/.htaccess
/public_html/lib/.htaccess
/public_html/dompdf/lib/php-font-lib/.htaccess
/public_html/skins/.htaccess
/public_html/images/.htaccess
/public_html/var/.htaccess
/public_html/var/export/.htaccess

Is that normal that file is copied so many times? Which one is most important?
__________________
5.3.2.2 Business License
Reply With Quote
  #8  
Old 04-27-2017, 10:42 PM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

X-Guru
  
Join Date: Dec 2010
Posts: 6,373
 

Default Re: Products URL wrong

You don't need to change the name of the .htaccess file. Instead you should check with your server administrator if the server configuration allows your .htaccess files to alter the default server settings (including the mod_rewrite one).

Quote:
...
/public_html/xcart/.htaccess
...
/public_html/skins/.htaccess
...

What is in the "xcart" directory? Where did you install X-Cart? Is it this directory, or the "public_html" one? Or do you have two X-Cart installations at the same time?
__________________
Alex Solovev,
Qualiteam

---

User manual Video tutorials X-Cart FAQ

You are welcome to press "Thanks" button
if you find this post useful

Click here to learn how to apply patches

X-Cart Extensions
Reply With Quote
  #9  
Old 04-28-2017, 05:01 AM
 
Zack P. Zack P. is offline
 

Advanced Member
  
Join Date: Oct 2016
Posts: 94
 

Default Re: Products URL wrong

Alex, x-cart directory had one of the .htaccess files and 2 images. I deleted everything and folder as well. So installation is where it suppose to be, in public_html root directory.
WEB master already checked everything and every test shows that server is OK. He even contacted C Panel support line.
Do you want to take a look, I'll send you credentials to log into C Panel?
__________________
5.3.2.2 Business License
Reply With Quote
  #10  
Old 05-03-2017, 10:09 AM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

X-Guru
  
Join Date: Dec 2010
Posts: 6,373
 

Default Re: Products URL wrong

I'm sorry, but I'm not a technical support engineer.
Please submit a ticket at https://secure.x-cart.com/ and our support team will check the issue for you.
__________________
Alex Solovev,
Qualiteam

---

User manual Video tutorials X-Cart FAQ

You are welcome to press "Thanks" button
if you find this post useful

Click here to learn how to apply patches

X-Cart Extensions
Reply With Quote
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 05:36 AM.

   

 
X-Cart forums © 2001-2020