<from>^/((bin|resources|skins|rest|webdav|xmlrpc|wiki|webjars)/(.*)|robots\.txt)$</from>
   
 it is working!

You are really a warm-hearted person. Thank you!
 
From: Clemens Klein-Robbenhaar [via XWiki]
Date: 2016-05-03 01:29
To: Jack
Subject: Re: robots.txt not found
> Deploy the XWiki Enterprise 8.0 WAR , install in Tomcat 8 
> According to this article 
> http://platform.xwiki.org/xwiki/bin/view/Main/ShortURLs  make 
> http://localhost:8080/xwiki/bin/view/Main/ as http://localhost:8080/Main/
> I remove tomcat ROOT folder,copy xwiki war and rename ROOT 
> now I have a question: 
> I put robots.txt in /ROOT,then I found that http://localhost:8080/robots.txt  
> file not found. 
> I found that web.xml has redirect,so I put 
> <servlet-mapping> 
>     <servlet-name>default</servlet-name> 
>     <url-pattern>/robots.txt</url-pattern> 
>   </servlet-mapping> 
> also not use. 
> 
> now , i need romove web.xml  redirect Related configuration file? 
> 

The problem is that the webapp thinks you want to display a Wiki space named 
"robots.txt" 

You likely need to adapt the URL rewrite, i.e. this part: 

 http://platform.xwiki.org/xwiki/bin/view/Main/ShortURLs#HUrlRewriteFilter

There is the list of static urls, near the comment: "Ensure that URLs that must 
not be served by the Struts Servlet are not modified" 

You should be successful if you add /robots.txt as a special case here, like: 

<from>^/((bin|resources|skins|rest|webdav|xmlrpc|wiki|webjars)/(.*)|robots\.txt)$</from>
 


at least I hope it works that way; I have to admit I did not check if it really 
works. 



> 
> 
> 
> -- 
> View this message in context: 
> http://xwiki.475771.n2.nabble.com/robots-txt-not-found-tp7599302.html
> Sent from the XWiki- Users mailing list archive at Nabble.com. 
> _______________________________________________ 
> users mailing list 
> [hidden email] 
> http://lists.xwiki.org/mailman/listinfo/users
> 

_______________________________________________ 
users mailing list 
[hidden email] 
http://lists.xwiki.org/mailman/listinfo/users




If you reply to this email, your message will be added to the discussion below:
http://xwiki.475771.n2.nabble.com/robots-txt-not-found-tp7599302p7599303.html 
To unsubscribe from robots.txt not found, click here.
NAML 




--
View this message in context: 
http://xwiki.475771.n2.nabble.com/robots-txt-not-found-tp7599302p7599307.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
_______________________________________________
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users

Reply via email to