I have the next rules, and I should be able to access to this URLs without any problem:
domain.com/robots.txt
- should redirect me to -> domain.com/sitemapHT/robots.txt
now robots.txt has an index of xmls files, where does the sitemaps for different sections of the site write its sitemap. For example: domain.com/sitemapHT/sitemap_anuciantes.xml
With the current rules (below) When I try to access to any of the /robots.txt or sitemapHT urls, it sends me to domain.com/
The rules also are redirecting from old /portal/index.action
url we have, to a new just /
Could you help me to fix the rules to access properly to the previous urls?
<VirtualHost *:80>
ServerAdmin administracion.linux@yellargentina.com
DocumentRoot "/opt/tomcat-5.5.30/webapps/portal"
ServerName hoteles.t1.yellargentina.com
ServerAlias hoteles.t1.yellargentina.com
CustomLog /tmp/hoteles-access_log combined
ErrorLog /tmp/hoteles-error_log
RewriteLog /tmp/hoteles-rewrite_log
RewriteLogLevel 3
JkUnMount /images/*.gif w1
JkUnMount /images/*.png w1
JkUnMount /images/*.jpg w1
JkUnMount /js/*.js w1
JkUnMount /styles/*.css w1
JkMount /portal w1
JkMount /portal/* w1
RewriteEngine on
RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
RewriteRule .* - [F]
Options +FollowSymlinks
##
# Originales
##
##
RewriteRule ^/robots.txt /sitemapHT/robots.txt [R=301]
RewriteCond $1 !^/(sitemapHT/|portal/)
##
#RewriteRule ^/$ /portal/ [R]
#RewriteRule ^/(?!portal)(.*) /portal/ficha.action/$1 [PT]
RewriteRule ^/$ /portal/index.action [PT]
RewriteRule ^/portal/index.action / [R]
RewriteRule ^/(?!portal)(.*) /portal/ficha.action/$1 [PT]
</VirtualHost>
Thank you!