MyBB Community Forums

Full Version: Where To Store robots.txt On Redirected Domain?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I have a domain, e.g: www.example.com
But I store MyBB files on www.example.com/forums/

I set my domain www.example.com always redirect to www.example.com/forums/

where to store robots.txt on redirected domain?

note: I have 2 .htaccess file (with different scripts), each of them stored on www.example.com and www.example.com/forums/

Should I do the same thing to store robots.txt file??
Google Webmasters Q&A' Wrote:The robots.txt file must reside in the root of the domain and must be named "robots.txt".
A robots.txt file located in a subdirectory isn't valid, as bots only check for this file in the root of the domain.
For instance, http://www.example.com/robots.txt is a valid location. But, http://www.example.com/mysite/robots.txt is not ...
(2013-11-23, 11:06 AM)gen89 Wrote: [ -> ]I have a domain, e.g: www.example.com
But I store MyBB files on www.example.com/forums/

I set my domain www.example.com always redirect to www.example.com/forums/

where to store robots.txt on redirected domain?

note: I have 2 .htaccess file (with different scripts), each of them stored on www.example.com and www.example.com/forums/

Should I do the same thing to store robots.txt file??

i just uploaded 1 x robot.txt file to the root folder