How to redirect your old site's pages
When should I use redirects and why?
If moving your existing site to Sharefox along with sale and rental products, you will want to setup redirects of your old pages to bring your customers to the new page on the Sharefox site.
Setting up redirects from your old shop to new shop have a few benefits:
- It will make sure you do not lose any SEO ratings from your current shop
- It ensure your customers that have bookmarked your pages, will be able to see the new version of those pages
- It eliminates broken links from Google or old articles linking to your old site
- Your shop will use 308 codes (the latest in permanent redirect status codes) to tell Google to start using your new location in search results
Steps to set up your redirects
Step 1: Page Mapping
Identify the mapping between your old website and the new Sharefox website page URLs. Determine the old page URL and its corresponding new page URL.
For example, if you have a current site where you have all your rentals at a page called your-site-domain.com/allRentals, then the new version of this page on the Sharefox site will be called your-site-domain.com/products. Therefore the relevant mapping here is to redirect the page /allRentals
to the new page /products
Step 2: Create Permanent Redirects File
Create a file that defines the old page and new page mappings. Name this file permanent-redirects.txt
. Each mapping should be written as follows: [old page URL] [new page URL]
and each mapping must be written on a new line in the fil
Here is an example of a file with 4 redirects:
/allRentals /products /rentals /product-name /products/<product-id>/product-name /blogPosts /blog
Step 3: Upload the redirects
Upload the redirect file from the Sharefox admin portal. Follow these steps:
- Go to Settings and click on the 'Media' tile.
- In the media section, click 'Add' on the 'Custom Files' row
- Name the new file as
permanent-redirects.txt
and upload the redirect file you created
Step 4: Test the redirects
Once the file is uploaded, the redirects will be in effect.
To confirm if the redirects are working, open your Sharefox shop and type the old page URL into the browser's search bar. It should automatically redirect you to the new mapping you defined for that page.
Step 5: Support
If the redirects are not working as expected, contact Sharefox support for assistance in configuring the redirect file. Remember to ensure that the redirect file contains all the necessary mappings and that the file name is permanent-redirects.txt
How to redirect the logo link
from permanent-redirects.txt
If you want to skip the landing page and use the products page as a landing page
/logoRedirect /products
You can also redirect to an external page
/logoRedirect https://someother.page.com