I "think" I have the rewrite converted to nginx format, but would someone a little more familiar with it double check my rewrite rule
Code:rewrite /(robots.txt)$ /robots.php last;
EDIT:
And it DOES work... I just went to http://twowheeldemon.com/robots.txt and it kicked up the options selected and the additional info I put in.
You can put that inside server {}Terrific! Thanks.
Where within the site config file do I put that? Inside a server{} or one level below inside a location{}?
Quick sample of the applicable part of my site nginx vhost config.Terrific! Thanks.
Where within the site config file do I put that? Inside a server{} or one level below inside a location{}?
server {
listen 80;}
server {
server_name twowheeldemon.com;
location /nginx_status {
stub_status on;
access_log off;
allow 127.0.0.1;
allow 192.73.236.43;
allow 24.49.69.204;
deny all;
}
location = /favicon.ico { alias /var/www/twowheel/favicon.ico; }
error_log /var/log/nginx/twd-error.log warn;
access_log /var/log/nginx/twd-access.log;
root /var/www/twowheel;
# Main Site Related.
}
rewrite /(robots.txt)$ /robots.php last;
location / {
try_files $uri $uri/ /index.php?$uri&$args;
index index.html index.htm index.php;
gzip
I added an option to let the sitemap add-on manage your robots.txt file. To accomplish this you will need to do a mod_rewrite rule. Instructions are provided in the zip file, you need to forward the robots.txt file to the provided robots.php file
Sitemap: http://www.netrider.net.au/sitemap/blog.www.xml.gz
It's actually a bug with the blogs (newest version generates a sitemap per domain, and it thinks www is a user)
The following patch will fix it.
Substitute library/XfAddOns/Blogs/ControllerPublicOverride/Robots.php with this attached file
Sitemap: http://*.netrider.net.au/sitemap/sitemap.xml.gz
Contains a fix that only applies to you if you are using
Bugs fixed
- Better Blogs
- With the subdomains feature enabled
- The sitemap was being incorrectly generated as http://*.domain.com
I have uploaded a new version of the sitemap that fixes that issueAnd now it produces
Code:Sitemap: http://*.netrider.net.au/sitemap/sitemap.xml.gz
Oh, great idea. Definitely!
P.S. Please review I am trying to upgrade my rating on the member resources page! At least front page of top resources!
http://forum.planefinder.net/robots.txtI use nginx and for some reason my robots in completely blank.
Any ideas?
http://forum.planefinder.net
Also. http://forum.planefinder.net/index.php?xfa-robots/index
Generates a blank response too. Weird!
We use essential cookies to make this site work, and optional cookies to enhance your experience.