Redirect s:.website.comold-category to s:.website.comnew-category
Redirect s:.website.comold-categoryproduct to s:.website.comnew-categoryproduct
Redirect s:.website.comold-categorysubcategory to s:.website.comnew-categorysubcategory
In this example, only those URLs in the old-category subfolder will be redirected; any in, say, different-category will not.
Wildcard redirects can be used when a single variable changes - for example, a folder name. The rest of the URL path must remain consistent to use wildcards.
If you are changing URLs in bulk and there is only one change in the path, you can choose a wildcard to redirect all URLs in a subfolder without having to implement a separate redirect for each URL.
If there are multiple variables in the path change, redirection brazil mobile database will not be appropriate.
When should you use a 301 redirect?
There are many situations in which you should use a 301 redirect. Let’s look at some of the most common reasons.
From s:.website.comold-page-name to s:.website.comnew-page-name
Sometimes you need to change the URL of a page on your site.
Maybe a product name changed slightly and you need to update it, or you started a project to better categorize your site pages into topic clusters, or some other reason entirely (the reasons are endless).
A 301 redirect will ensure that users are redirected to the new URL and that search engines index the new page and maintain any ranking position.