Home > front end >  django redirect to subdomain with exact same url
django redirect to subdomain with exact same url

Time:12-30

I have a Django website accessible at codewithbishal.com. This is basically a django blog website and all the blog articles are accessible at codewithbishal.com/example/<path>

But now I want to completely restructure the website{such that it is accessible at blog.codewithbishal.com/<path>} and I do no want to lose the current SEO therefore I want to configure django redirect such that when someone launches codewithbishal.com/example/<path> through google search search result or directly through link, they are redirected to blog.codewithbishal.com/<path> instead of a 404 page and eventually google will start showing the new links instead of old once.

Update: Should I configure redirect through apache .htaccess?

CodePudding user response:

You can use the Django redirects app. Just click the link and find the guide.

  • Related