D
D
Dmitry Filandor2017-10-20 11:18:59
Apache HTTP Server
Dmitry Filandor, 2017-10-20 11:18:59

How to make xampp and .htaccess work?

Hello. There is an opencart store. 20 thousand goods ... you need to upload feeds for the Yandex market and Google, on the Wirth host it naturally falls off by timeout. I want to unload xml on locale.
I installed xampp, launched the site, but along the path localhost/bi.ru/index.php?route=feed/yandex_market it redirects
to the default xampp page localhost/dashboard
As I understand it, .htaccess does not work
. Google did everything:

в httpd-vhosts.conf
<VirtualHost bi.ru:80>
    # rest of the stuff
    <Directory "D:\PF\xampp\htdocs\bi.ru">
  AllowOverride All
        require local granted         
    </Directory>	  
</VirtualHost>

in httpd.conf
AllowOverride All
and the rewrite module is removed, the rewrite module is present in the php folder.
If I write an error in the .htaccess file, then the site does not open, so the file is still accessed ... maybe the instructions themselves need to be rewritten under the locale?
RewriteBase /
RewriteRule ^yandexbuy/([^?]*)$ index.php?route=yandexbuy/$1 [L,QSA]
RewriteRule ^sitemap.xml$ index.php?route=feed/google_sitemap [L]
RewriteRule ^googlebase.xml$ index.php?route=feed/google_base [L]
RewriteRule ^system/download/(.*) index.php?route=error/not_found [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !.*\.(ico|gif|jpg|jpeg|png|js|css)
RewriteRule ^([^?]*) index.php?_route_=$1 [L,QSA]

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question