Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong URL addresses for products and categories #59

Closed
serzhik opened this issue Feb 1, 2016 · 7 comments
Closed

Wrong URL addresses for products and categories #59

serzhik opened this issue Feb 1, 2016 · 7 comments

Comments

@serzhik
Copy link

serzhik commented Feb 1, 2016

After data migration of two different stores on Magento 1.9.2.0 and 1.9.2.1 all products and categories URLs has extra ".html".

Example:
Before migration: site.com/product.html, site.com/category.html;
After migration: site.com/product.html.html, site.com/category.html.html;

@andidhouse
Copy link

same here after migration from 1.7.0.2...

@serzhik
Copy link
Author

serzhik commented Feb 1, 2016

The problem is in url_rewrite table.
heidisql_2016-02-01_16-42-48

@serzhik
Copy link
Author

serzhik commented Feb 1, 2016

To fix it after migration run this query at MySQL:

DELETE FROM `url_rewrite` WHERE CONCAT(`request_path`,".html")=`target_path`;
UPDATE url_rewrite SET request_path = REPLACE(request_path, '.html.html', '.html') WHERE request_path LIKE '%.html.html%';
UPDATE url_rewrite SET target_path = REPLACE(target_path, '.html.html', '.html') WHERE target_path LIKE '%.html.html%';

@andidhouse
Copy link

Yes. another way is to totally truncate the url_rewrite database. Then on save of a product or category the table is regenerated (but you must save all products and categories to achieve this). Would be nice to fix this one in the tool...

@ilol
Copy link

ilol commented Apr 28, 2016

@serzhik did you resolve the issue? can close?

@ilol
Copy link

ilol commented Apr 28, 2016

Thank you @andidhouse ! We are discussind your suggestion internally

@serzhik serzhik closed this as completed May 3, 2016
@ilol
Copy link

ilol commented May 10, 2016

MAGETWO-52158

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants