Rank: Advanced Member
Groups: Admin, Developers, Registered, HelpDesk, Authorized User Joined: 10/5/2018(UTC) Posts: 704
Thanks: 5 times Was thanked: 113 time(s) in 112 post(s)
|
Hi Ricky, We are not yet supporting re-indexing feature for Category and Product Urls in AC9. To update the Catalog Url, you need to change them manually. However, we have an unfinished feature to rebuild Catalog Urls which is hidden in code in our latest release. You can make use of that feature to re generate/ re-index all your catalog Urls. 1- Please open the file \Website\Areas\Admin\Views\SEO\Settings.cshtml 2- Search for the code Code:@*<div class="row">
<div class="col-lg-6">
<div class="ibox float-e-margins">
<div class="ibox-title">
<h5>URL Settings</h5>
</div>
<div class="ibox-content">
@using (Ajax.BeginForm("RebuildUrls", "SEO", new AjaxOptions() { HttpMethod = "POST", OnSuccess = "toastr.success('Success', 'Catalog Urls rebuild successfully')" }, new { id = "rebuild-urls-form" }))
{
<p>
For each new item (product, category, or webpage) added, a catalog URL generates automatically using the item's name. If there is a change made to the item's name, the URL will not update automatically. The Rebuild Catalog URLs button below will regenerate all catalog URLs using the current name of each catalog item.
</p>
<div class="checkbox checkbox-success">
@Html.CheckBox("OverrideUrls")
<label class="tooltip-label" data-content="If a catalog item uses a customized URL (one that is manually changed), it will appear in the Custom URLs report. This option will remove all custom URLs and replace each one with the automatically generated catalog URL." for="OverrideUrls">
Replace all custom URLs - This action cannot be undone!
</label>
</div>
<div class="form-group">
<button type="button" id="rebuild-catalog-urls" class="btn btn-primary">Rebuild Catalog URLs</button>
</div>
}
</div>
</div>
</div>
<div class="col-lg-6">
</div>
</div>*@
3- Replace it with Code:<div class="row">
<div class="col-lg-6">
<div class="ibox float-e-margins">
<div class="ibox-title">
<h5>URL Settings</h5>
</div>
<div class="ibox-content">
@using (Ajax.BeginForm("RebuildUrls", "SEO", new AjaxOptions() { HttpMethod = "POST", OnSuccess = "toastr.success('Success', 'Catalog Urls rebuild successfully')" }, new { id = "rebuild-urls-form" }))
{
<p>
For each new item (product, category, or webpage) added, a catalog URL generates automatically using the item's name. If there is a change made to the item's name, the URL will not update automatically. The Rebuild Catalog URLs button below will regenerate all catalog URLs using the current name of each catalog item.
</p>
<div class="checkbox checkbox-success">
@Html.CheckBox("OverrideUrls")
<label class="tooltip-label" data-content="If a catalog item uses a customized URL (one that is manually changed), it will appear in the Custom URLs report. This option will remove all custom URLs and replace each one with the automatically generated catalog URL." for="OverrideUrls">
Replace all custom URLs - This action cannot be undone!
</label>
</div>
<div class="form-group">
<button type="button" id="rebuild-catalog-urls" class="btn btn-primary">Rebuild Catalog URLs</button>
</div>
}
</div>
</div>
</div>
<div class="col-lg-6">
</div>
</div>
But please note that this feature is not finished and properly tested so if you are willing to make use of this feature please keep in mind that this will not create any redirects for the previous catalog URLs. However, for the custom URLs there is a setting to replace or preserve the custom catalog URLs.This is the description for the feature For each new item (product, category, or webpage) added, a catalog URL generates automatically using the item's name. If there is a change made to the item's name, the URL will not update automatically. The Rebuild Catalog URLs button below will regenerate all catalog URLs using the current name of each catalog item.
|
1 user thanked shaharyar for this useful post.
|
|