I see that if the name of a product is changed in my Magento V 1.9.2.2 shop, links from google are giving 404's for the url's with the old name instead of redirecting to the new page and getting a 301.
I know I can manually add the redirect in the URL Rewrite
Maintenance section and that does work but I'm wondering if that is how Magento works or if I am missing something? If it is how it works, it seems a big oversight on Magento's part.
Is there a known fix for this or maybe some setting I have to change? Or do I need to enter such changes in manually each time?
For create new URL Rewrite magento have Catalog URL Rewrites indexing. So when you did Catalog URL Rewrites indexing then all the URL generate properly. Have you try to indexing? Also check its on ready state or not.
Related
I have been setting up a WooCommerce store on an existing website and I have been having a problem where the Add to Cart button's form sends the user to a URL that begins with http, which gives an error in most major web browsers and is not processed by the server. The same occurs if you try to update any of the cart's settings, such as the address and the quantity of product in the cart.
I have tried the following:
changing the website URLs in the wp_options table in the database
using SSL plugins such as Really Simple SSL, which doesn't solve the problem
reinstalling the SSL certificate to force HTTP to HTTPS redirect
using WooCommerce's Force SSL setting to force HTTPS
overwriting the default cart templates, which does not work since the form action URLs are generated by PHP
I'm not sure what else to do to solve this. Any help with this would be greatly appreciated!
Few troubleshooting options to be followed :
Check whether you have changed the URL to https in two places and not just one ?
WordPress Address (URL) / WP_SITEURL: The address where your
WordPress core files reside.
Site Address (URL) / WP_HOME: The address typed in a browser to
reach your WordPress blog.
You mentioned in comment below the question that you face issue in updating the URL via dashboard. The reason may be that you might have hard coded the URL in config.php which overrides the dashboard settings which comes from db values.
Hard coding values of URL settings in the wp-config.php file makes you
lose the ability to modify them from the dashboard.
So, now if the above statement is true then proceed changing the values in config.php as follows
Edit your wp-config.php file.
Define your WP_HOME and WP_SITEURL settings by inserting these lines
towards the top:
define('WP_HOME','https://example.com');
define('WP_SITEURL','https://example.com');
In case if its already perfect then try changing these two values in db as follows
Navigate to wp_options table in phpmyadmin
Your wp_ prefix may differ depending on your installation settings.
Click edit beside either the siteurl or home entries.
You may need to search for them with the Filter rows function at the top.
Enter in your new value in the option_value field, then click Go
I am working on a wordpress project. I simply installed the wordpress 4.6.1 and completed my project. But there is a problem with the url. It seems to be like http://example.com/demo/?v=bf13ba33f40c, I didn't get why ?v=bf13ba33f40c part is added to url automatically. I set the permalink but it shows no effect. Anybody please help.
Thanks!
It looks like the "geolocalize users with cache support" setting in WooCommerce. If you turn that off the extra get parameter will go away
I have the community-feedback mod installed in Magento and I've had lots of issues with it. I am now fixing the bugs in it myself as the developer been of no help. One of the issues I am having is that when I add or change any product, the url rewrites for posts/tags from the extension are erased. I end up having to clear the table and then manually reindexing the cart.
I would like to know which function is responsible during product additions/changes for clearing/deleting url rewrites.
I have a website at present, let us assume www.TheShop.com, which is running on Martjack. Which is a sucky E-Commerce Platform, made in .net. It has a long url structure and the examples can be seen on:
http://www.thebodyshop.in/Products/Skincare-Treatment/TEA-TREE/Tea-Tree-Oil/pid-3368697.aspx
This URL Structure is really complex.
Now I am moving to Prestashop and it has simple url structure.
Question: I need to forward the links of individual products to the new product pages on prestashop. And I could only come up with the following solutions:
Individually forward the links (HOW? I HAVE NO IDEA!)
Use some module which has been made for prestashop which helps me out.
In some way use the pid given at the end of the products for re-routing to the new product pages.
301 Redirect rule can be used, but something else will be more useful as playing with .htaccess is a little risky.
I would like to get suggestions on how to go about the whole situation.
Long story short - I'm trying to restore my ver1.4 store (multi-store) but am doing so to a test environment first. (Production has one site working and I don't want to lose it entirely.)
On my test environment, I continue to get the following error message when I try to reindex the Catalog URL Rewrites:
An error occurred while saving the URL rewrite.
Before doing that, I had emptied the core_url_rewrites table in the database, cleared the var/cache, var/locks and var/session folders and cleared my browser cache.
I've done it repeatedly to see if I could figure out what was going on. I had read that there was often a problem with url rewrites in multi-store setups when products were in more than one root category. I had a lot of those, so I went through my cata.logs and products and limited each product to just one root category (store/domain.)
My configuration settings are as follows:
System -> Configuration -> Web
URL Options
Add Store Code to Urls No [GLOBAL]
Redirect to Base URL if requested URL doesn't match it No [GLOBAL]
Search Engines Optimization
Use Web Server Rewrites Yes [STORE VIEW] (all store views set to use Website)
System -> Configuration -> Catalog
Frontend
Use Flat Catalog Category No [GLOBAL]
Use Flat Catalog Product No [GLOBAL]
Allow Dynamic Media URLs in Products and Categories Yes [STORE VIEW]
Search Engine Optimizations
Autogenerated Site Map Enable [STORE VIEW]
Popular Search Terms Enable [STORE VIEW]
Product URL Suffix .html [STORE VIEW]
Category URL Suffix .html [STORE VIEW]
Use Categories Path for Product URLs Yes [STORE VIEW]
Create Permanent Redirect for old URLs if Url key changed yes [STORE VIEW]
Page Title Separator - [STORE VIEW]
Use Canonical Link Meta Tag For Categories No [STORE VIEW]
Use Canonical Link Meta Tag For Products No [STORE VIEW]
I confirmed that I have the proper .htaccess file in each of my directories (the root and each of the folders with symlinks denoting the various stores/domains.) I also double-checked my index.php files.
Each time I run the Reindexing, it indexes one more item. I have over 2500 items so am inclined to not want to go through it 2500 times. I feel I must be missing something, but I can't figure out what it is.
When I add a new product, it usually gives me an error message that it failed because it couldn't create a url rewrite, but the item is added. Then the next time I reindex, the new item is indexed for all four stores.
This didn't seem to be a problem with my previous setup so it might simply be the goofy way that my test environment is set up.
If anyone has any ideas of how I might identify and/or fix the problem, I'd be MOST appreciative!
Cheers!
Penny
Need more information about the error message. Look in the var/log folder or var/report folder for further information on the exact error and hopefully there is something there that will shed some light. Could be due to a variety of reasons so detailed message is required.