?
Solved

Are the two files .htaccess and robots.txt interchangeable for different sites.

Posted on 2015-02-02
3
Medium Priority
?
121 Views
Last Modified: 2015-02-02
can i use the same .htaccess file and the same robots.txt file for different websites?
Or does the text in those files have to be modified?
0
Comment
Question by:digisel
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 70

Accepted Solution

by:
Jason C. Levine earned 1000 total points
ID: 40584051
Sort of.

Those files can have a mix of generic and site-specific commands. The generic ones can be transferred, the site-specific ones need to be altered.
0
 
LVL 18

Assisted Solution

by:Lucas Bishop
Lucas Bishop earned 1000 total points
ID: 40584407
They would only be interchangeable if the sites were exact replicas (file/folder names). If there were any 'domain' related rules in the htaccess, those would need to be updated.
0
 

Author Closing Comment

by:digisel
ID: 40584606
thanks for your input
0

Featured Post

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Q&A with Course Creator, Mark Lassoff, on the importance of HTML5 in the career of a modern-day developer.
Ready to get certified? Check out some courses that help you prepare for third-party exams.
Viewers will get an overview of the benefits and risks of using Bitcoin to accept payments. What Bitcoin is: Legality: Risks: Benefits: Which businesses are best suited?: Other things you should know: How to get started:
This video teaches users how to migrate an existing Wordpress website to a new domain.
Suggested Courses

650 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question