ManuTdi
XenForoUser
Con la nueva versión de xenforo 1.4 ya viene integrado el sitemap. El tema es que creo que la mayoría teniamos el complemento este. He visto información sobre como hacer para decirle a google que el sitemap antiguo vaya al nuevo que es /sitemap.php el problema es que no se donde ponerlo creo que en .htaccess pero no se donde.
Codigo que he visto por xenforo:
Mi .htaccess:
Por otra parte si accedo a www.ps4mania.com/sitemap.php me da un error 404 a que es debido?
Codigo que he visto por xenforo:
With switching from the add-on to the now in-built sitemap, the old urls can be pointed to the new one.
Apache
Insertar CODE, HTML o PHP:RewriteRule ^sitemap/sitemap\.xml\.gz sitemap.php [NC,L]
Nginx
Insertar CODE, HTML o PHP:location ~* /sitemap/sitemap(\.(\w)+(\.(\d)+)?)?\.xml\.gz { return 301 $scheme://$server_name/sitemap.php; }
This could be done in combination with re-submitting, to make sure everything/everyone is reaching the latest sitemap. Rather than perhaps getting some stray hits to the old ones (or 404).
Mi .htaccess:
Insertar CODE, HTML o PHP:
# Mod_security can interfere with uploading of content such as attachments. If you
# cannot attach files, remove the "#" from the lines below.
#<IfModule mod_security.c>
# SecFilterEngine Off
# SecFilterScanPOST Off
#</IfModule>
ErrorDocument 401 default
ErrorDocument 403 default
ErrorDocument 404 default
ErrorDocument 500 default
RewriteCond %{HTTP_HOST} ^([^.]+)\.([^.]+)$
RewriteRule ^(.*)$ http://www.%1.%2/$1 [R=301,L]
<IfModule mod_rewrite.c>
RewriteEngine On
# If you are having problems with the rewrite rules, remove the "#" from the
# line that begins "RewriteBase" below. You will also have to change the path
# of the rewrite to reflect the path to your XenForo installation.
#RewriteBase /xenforo
# This line may be needed to enable WebDAV editing with PHP as a CGI.
#RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
RewriteRule ^(data/|js/|styles/|install/|favicon\.ico|crossdomain\.xml|robots\.txt) - [NC,L]
RewriteRule ^.*$ index.php [NC,L]
</IfModule>
Por otra parte si accedo a www.ps4mania.com/sitemap.php me da un error 404 a que es debido?