[.thaccess] – PrestaShop code inside

  • In Progress
    Posted in: Uray WordPress Theme  
  • Member
    larecetteduweb
    August 20, 2019 at 8:23 pm #9291

    Hello,

    I am emailing you as I have noticed that some code for PrestaShop is present within the .htaccess file of your wordpress theme.

    That is kind of strange.

    I did not delete it but I would like to know if I can.

    Here is the full .htaccess file code :

    # ~~start~~ Do not remove this comment, Prestashop will keep automatically the code outside this comment when .htaccess will be generated again
    # .htaccess automaticaly generated by PrestaShop e-commerce open-source solution
    # http://www.prestashop.com - http://www.prestashop.com/forums
    
    <IfModule mod_rewrite.c>
    <IfModule mod_env.c>
    SetEnv HTTP_MOD_REWRITE On
    </IfModule>
    
    RewriteEngine on
    
    #Domain: pickandshine.com
    RewriteRule . - [E=REWRITEBASE:/]
    RewriteRule ^api$ api/ [L]
    
    RewriteRule ^api/(.*)$ %{ENV:REWRITEBASE}webservice/dispatcher.php?url=$1 [QSA,L]
    
    # AlphaImageLoader for IE and fancybox
    RewriteRule ^images_ie/?([^/]+)\.(jpe?g|png|gif)$ js/jquery/plugins/fancybox/images/$1.$2 [L]
    </IfModule>
    
    AddType application/vnd.ms-fontobject .eot
    AddType font/ttf .ttf
    AddType font/otf .otf
    AddType application/font-woff .woff
    AddType font/woff2 .woff2
    <IfModule mod_headers.c>
    	<FilesMatch "\.(ttf|ttc|otf|eot|woff|woff2|svg)$">
    		Header set Access-Control-Allow-Origin "*"
    	</FilesMatch>
    </IfModule>
    
    #If rewrite mod isn't enabled
    ErrorDocument 404 /index.php?controller=404
    
    # ~~end~~ Do not remove this comment, Prestashop will keep automatically the code outside this comment when .htaccess will be generated again
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    
    # END WordPress

    Thank you,


    Cyril

    Sorry, this forum is for verified users only. Please Login

Comments are closed.