Forum Moderators: phranque
we are doing permanent redirect to www.mydomain.com/abc/xyz and want to access Robots.txt file e.g. www.mydomain.com/robots.txt from root level but instead of getting Robots.txt file when we type www.mydomian.com/robots.txt, permanent is redirecting to www.mydomain.com/abc/xyz instead of giving robots.txt file.
please help me to put a rewriteRule to get robots.txt file and I want to keep permanent redirect as well.
Ps: after disbaling permanent redirect i can get robots.txt and also my usinf index.html at root level i can get that but we want to get it with permanent redirect.also i am able to access robots.txt via http not https?
Thanks,
Pan
<virtualhost <name>:ssl port>
ServerName www.mydomain.com
RedirectMatch permanent ^/$ [mydomain.com...]
</virtualhost>
<virtualhost <name>:non ssl port>
ServerName www.mydomain.com
SSLDisable
RedirectMatch permanent ^/$ [mydomain.com...]
</virtualhost>
thanks,
pan
Look for Alias directives or any .htaccess files which may contain other Redirect or RewriteRule directives which may be interfering with robots.txt.
Jim
thanks very much,
pan