Jump to content

htaccess rewrite runs into processwire error


mike131
 Share

Recommended Posts

Hi,

I have a site that has other ccTLDs, such as .co.za, .co.il, etc., I am trying to make a robots.txt for each of the different domains by following this article.

http://webmasters.stackexchange.com/questions/61089/serve-a-different-robots-txt-file-for-every-site-hosted-in-the-same-directory

When I test however, I get a message saying 'Unable to complete this request due to an error. Error has been logged. Administrator has been notified.' with a 500 error.

I don't really know much about htaccess and I am wondering if I need to put something in the processwire htaccess directives to bypass/allow what I am trying to do.

The end result would be.

Request is http://example.co.uk/robots.txt

is redirected to /co.uk/robots.txt

Link to comment
Share on other sites

Hi,

I have a site that has other ccTLDs, such as .co.za, .co.il, etc., I am trying to make a robots.txt for each of the different domains by following this article.

http://webmasters.stackexchange.com/questions/61089/serve-a-different-robots-txt-file-for-every-site-hosted-in-the-same-directory

When I test however, I get a message saying 'Unable to complete this request due to an error. Error has been logged. Administrator has been notified.' with a 500 error.

I don't really know much about htaccess and I am wondering if I need to put something in the processwire htaccess directives to bypass/allow what I am trying to do.

The end result would be.

Request is http://example.co.uk/robots.txt

is redirected to /co.uk/robots.txt

I figured out my problem, it was due to the name I was naming folders.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...