Answer the question
In order to leave comments, you need to log in
Regionality in Bitrix Apro Next. How to create sitemap.xml?
Hello!
There is a website (online store), the Aspro solution is installed: Next
Initially, they worked on the same domain site.ru
Everything worked without errors, sitemap incl. everything was ok.
Those. at site.ru/sitemap.xml the correct map was issued.
Recently it was decided to make regionality.
Mode - on the gorod.site.ru subdomains
Everything was done according to the instructions, the regionality works, but .... (official instructions - https://aspro.ru/docs/course/course36/chapter0896/...
After activating the regionality and all the necessary settings, the procedure for recreating the sitemap and robots files for all subdomains was launched, the instructions say what this procedure does - https://aspro.ru/docs/course/course36/lesson901/?L...
https://take.ms/n7UHE
Map files were copied for each region to the desired folder (screen attached)
https://take.ms/Geky0
After this procedure, several files with the .php extension were created in the root folder of the site (screen attached )
But! They have zero size, they are all empty!
https://take.ms/ZAtw6
In addition, the htaccess file has changed (as it should be), it should now give the correct sitemap depending on the subdomain
Options -Indexes
ErrorDocument 404 /404.php
<IfModule mod_php5.c>
php_flag allow_call_time_pass_reference 1
php_flag session.use_trans_sid off
#php_value display_errors 1
#php_value mbstring.internal_encoding UTF-8
</IfModule>
<IfModule mod_rewrite.c>
Options +FollowSymLinks
RewriteEngine On
# ASPRO_SITEMAP_sitemap_index Serve sitemap.xml with sitemap.php only if the latter exists
RewriteCond %{REQUEST_FILENAME} sitemap_index.xml
RewriteCond %{DOCUMENT_ROOT}/sitemap_index.php -f
RewriteRule ^(.*)$ /sitemap_index.php [L]
# ASPRO_SITEMAP_sitemap_iblock_9 Serve sitemap.xml with sitemap.php only if the latter exists
RewriteCond %{REQUEST_FILENAME} sitemap_iblock_9.xml
RewriteCond %{DOCUMENT_ROOT}/sitemap_iblock_9.php -f
RewriteRule ^(.*)$ /sitemap_iblock_9.php [L]
# ASPRO_SITEMAP_sitemap_iblock_3 Serve sitemap.xml with sitemap.php only if the latter exists
RewriteCond %{REQUEST_FILENAME} sitemap_iblock_3.xml
RewriteCond %{DOCUMENT_ROOT}/sitemap_iblock_3.php -f
RewriteRule ^(.*)$ /sitemap_iblock_3.php [L]
# ASPRO_SITEMAP_sitemap_iblock_22 Serve sitemap.xml with sitemap.php only if the latter exists
RewriteCond %{REQUEST_FILENAME} sitemap_iblock_22.xml
RewriteCond %{DOCUMENT_ROOT}/sitemap_iblock_22.php -f
RewriteRule ^(.*)$ /sitemap_iblock_22.php [L]
# ASPRO_SITEMAP_sitemap_iblock_19 Serve sitemap.xml with sitemap.php only if the latter exists
RewriteCond %{REQUEST_FILENAME} sitemap_iblock_19.xml
RewriteCond %{DOCUMENT_ROOT}/sitemap_iblock_19.php -f
RewriteRule ^(.*)$ /sitemap_iblock_19.php [L]
# ASPRO_SITEMAP_sitemap_iblock_18 Serve sitemap.xml with sitemap.php only if the latter exists
RewriteCond %{REQUEST_FILENAME} sitemap_iblock_18.xml
RewriteCond %{DOCUMENT_ROOT}/sitemap_iblock_18.php -f
RewriteRule ^(.*)$ /sitemap_iblock_18.php [L]
# ASPRO_SITEMAP_sitemap_iblock_17 Serve sitemap.xml with sitemap.php only if the latter exists
RewriteCond %{REQUEST_FILENAME} sitemap_iblock_17.xml
RewriteCond %{DOCUMENT_ROOT}/sitemap_iblock_17.php -f
RewriteRule ^(.*)$ /sitemap_iblock_17.php [L]
# ASPRO_SITEMAP_sitemap_iblock_15 Serve sitemap.xml with sitemap.php only if the latter exists
RewriteCond %{REQUEST_FILENAME} sitemap_iblock_15.xml
RewriteCond %{DOCUMENT_ROOT}/sitemap_iblock_15.php -f
RewriteRule ^(.*)$ /sitemap_iblock_15.php [L]
# ASPRO_SITEMAP_sitemap_iblock_14 Serve sitemap.xml with sitemap.php only if the latter exists
RewriteCond %{REQUEST_FILENAME} sitemap_iblock_14.xml
RewriteCond %{DOCUMENT_ROOT}/sitemap_iblock_14.php -f
RewriteRule ^(.*)$ /sitemap_iblock_14.php [L]
# ASPRO_SITEMAP_sitemap_iblock_12 Serve sitemap.xml with sitemap.php only if the latter exists
RewriteCond %{REQUEST_FILENAME} sitemap_iblock_12.xml
RewriteCond %{DOCUMENT_ROOT}/sitemap_iblock_12.php -f
RewriteRule ^(.*)$ /sitemap_iblock_12.php [L]
# ASPRO_SITEMAP_sitemap_iblock_11 Serve sitemap.xml with sitemap.php only if the latter exists
RewriteCond %{REQUEST_FILENAME} sitemap_iblock_11.xml
RewriteCond %{DOCUMENT_ROOT}/sitemap_iblock_11.php -f
RewriteRule ^(.*)$ /sitemap_iblock_11.php [L]
# ASPRO_SITEMAP_sitemap_iblock_10 Serve sitemap.xml with sitemap.php only if the latter exists
RewriteCond %{REQUEST_FILENAME} sitemap_iblock_10.xml
RewriteCond %{DOCUMENT_ROOT}/sitemap_iblock_10.php -f
RewriteRule ^(.*)$ /sitemap_iblock_10.php [L]
# ASPRO_SITEMAP_sitemap_forum_1 Serve sitemap.xml with sitemap.php only if the latter exists
RewriteCond %{REQUEST_FILENAME} sitemap_forum_1.xml
RewriteCond %{DOCUMENT_ROOT}/sitemap_forum_1.php -f
RewriteRule ^(.*)$ /sitemap_forum_1.php [L]
# ASPRO_SITEMAP_sitemap_files Serve sitemap.xml with sitemap.php only if the latter exists
RewriteCond %{REQUEST_FILENAME} sitemap_files.xml
RewriteCond %{DOCUMENT_ROOT}/sitemap_files.php -f
RewriteRule ^(.*)$ /sitemap_files.php [L]
# ASPRO_SITEMAP_sitemap_errors Serve sitemap.xml with sitemap.php only if the latter exists
RewriteCond %{REQUEST_FILENAME} sitemap_errors.xml
RewriteCond %{DOCUMENT_ROOT}/sitemap_errors.php -f
RewriteRule ^(.*)$ /sitemap_errors.php [L]
# ASPRO_SITEMAP_sitemap Serve sitemap.xml with sitemap.php only if the latter exists
RewriteCond %{REQUEST_FILENAME} sitemap.xml
RewriteCond %{DOCUMENT_ROOT}/sitemap.php -f
RewriteRule ^(.*)$ /sitemap.php [L]
# ASPRO_ROBOTS Serve sitemap.xml with sitemap.php only if the latter exists
RewriteCond %{REQUEST_FILENAME} robots.txt
RewriteCond %{DOCUMENT_ROOT}/robots.php -f
RewriteRule ^(.*)$ /robots.php [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-l
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !/bitrix/urlrewrite.php$
RewriteRule ^(.*)$ /bitrix/urlrewrite.php [L]
RewriteRule .* - [E=REMOTE_USER:%{HTTP:Authorization}]
</IfModule>
<IfModule mod_dir.c>
DirectoryIndex index.php index.html
</IfModule>
<IfModule mod_expires.c>
ExpiresActive on
ExpiresByType image/jpeg "access plus 3 day"
ExpiresByType image/gif "access plus 3 day"
</IfModule>
Answer the question
In order to leave comments, you need to log in
If the Aspro solution is active, contact support for this product, if not, buy an extension
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question