How to mod rewrite for sitemap.xml?

Domain Name Experts: Can I do a mod rewrite to a different domain?

  • I want to keep all my project files in /home/mainuser/mainproject on my dedicated server. However, for branding purposes I may want some modules of the project to be on a different domain. For example, my main project let's say is http://www.project.com/project Then I have the dealer web site to be http://www.otherproject.com/dealer... which should source to http;//http://www.project.com/project/dealer Is there a way to do this?

  • Answer:

    You can use .htaccess and do a 301 from one to the other. This is how it would look in your .htaccess file: redirect 301 /dealer http://www.project.com/project/dealer Or the other way around depending on which domain you want to be the "destination."

Chase Sagum at Quora Visit the source

Was this solution helpful to you?

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.