VirtueMart Forum

VirtueMart 2 + 3 + 4 => Security (https) / Performance / SEO, SEF, URLs => Topic started by: SimonHodgkiss on September 18, 2014, 10:20:48 AM

Title: Clear All - Sef Alias Data
Post by: SimonHodgkiss on September 18, 2014, 10:20:48 AM
Hello,

My client has updated a number of VM Category names but the 'Sef Alias' still uses the old data.

How can I delete this data and have VM recreate a new 'Sef Alias' ?

Thanks
Title: Re: Clear All - Sef Alias Data
Post by: AH on September 18, 2014, 10:37:39 AM
Edit the categories and create the new sef alias

Dont forget your 303 redirects for all categories and related products

And watch out for any coded links to products in these categories e.g. menu items
Title: Re: Clear All - Sef Alias Data
Post by: SimonHodgkiss on September 18, 2014, 13:37:20 PM
Theres over 5,000 can this be done automatically or does it have to be done manually?

303 redirects won't be a problem sites not gone live.
Title: Re: Clear All - Sef Alias Data
Post by: AH on September 18, 2014, 21:05:44 PM
Clear one out from the database and see what happens

Title: Re: Clear All - Sef Alias Data
Post by: SimonHodgkiss on September 19, 2014, 14:18:11 PM
I couldn't find the table for it?
Title: Re: Clear All - Sef Alias Data
Post by: AH on September 20, 2014, 10:28:01 AM
it is the category language table   ;)

prefix_virtuemart_categories_language_suffix
Title: Re: Clear All - Sef Alias Data
Post by: SimonHodgkiss on September 22, 2014, 13:05:48 PM
Didn't work just left the box blank.

Any other ideas?
Title: Re: Clear All - Sef Alias Data
Post by: jjk on September 22, 2014, 20:16:17 PM
Quote from: SimonHodgkiss on September 22, 2014, 13:05:48 PM
Any other ideas?
An easy to use tool for replacing lots of slugs would be the search and replace feature of HeidiSQL
http://www.heidisql.com/forum.php?t=11916
Title: Re: Clear All - Sef Alias Data
Post by: AH on September 23, 2014, 09:28:08 AM
but remember slugs should contain "-"

between distinct words

Title: Re: Clear All - Sef Alias Data
Post by: SimonHodgkiss on September 24, 2014, 16:45:42 PM
I still don't think this helps with the issue I am having.

Does anyone else have any other ideas
Title: Re: Clear All - Sef Alias Data
Post by: GJC Web Design on September 25, 2014, 00:40:33 AM
Quotebut the 'Sef Alias' still uses the old data.

where? in a menu or in the breadcrumbs or generally .. ? i.e everywhere?

the slug is definitely stored in prefix_virtuemart_categories_language_suffix so if you just blank them and resave the cat they have to go thru a process of reforming (to the new cat name) - just tried it - works
Title: Re: Clear All - Sef Alias Data
Post by: SimonHodgkiss on September 25, 2014, 09:49:14 AM
Thats interesting, when I blanked it from php my admin it gave me a 404 to that page and didn't recreated the slug.
Title: Re: Clear All - Sef Alias Data
Post by: AH on September 25, 2014, 20:22:50 PM
you have to go and maintain the category in admin in order for the slug to re-create

Deleting the slugs from the dbase  leaves them empty and thus a 404

Especially if you have created menu entries!