A htaccess boilerplate for all Magento Community installations. Features focus on speed, SEO and security.

Overview

magento-htaccess

A htaccess boilerplate for all Magento Community installations. Features focus on speed, SEO and security.

The file should be placed in the root of your Magento installed and named as .htaccess.

Built by the good people at Creare; namely @IcyApril (Junade Ali), @bavington (James Bavington) and @AdamPMoss (Adam Moss).

Comments
  • 500 internal server error

    500 internal server error

    Hey, tried to implement this and I get 500 internal server error on all pages. Cleared cache and session data to no effect. Also tried replacing all the rewrite commands with the ones in current .htaccess and still received 500 internal server error. Any clues what is going on? my site is http://vivaverde.co

    opened by TheRoyalTnetennba 9
  • seems not compatible with Varnish

    seems not compatible with Varnish

    Hi guys, I don't fully understand the problem, but I think something is messing with our backend.. Our backend URL is renamed to something else like http://domain.com/something and we have Varnish installed. It returns the following:


    Error 503 Service Unavailable

    Service Unavailable Guru Meditation:

    XID: 1947692261

    Varnish cache server

    Let me know how can I help..

    opened by neilborromeo 9
  • Handle of non-ssl to ssl page.

    Handle of non-ssl to ssl page.

    I have switched my store from http to https://

    I have added these lines in the htaccess to account for visitors coming from an http page to the site so that they can get redirected to the https: version of the same page.

    RewriteEngine On RewriteCond %{HTTPS} off RewriteRule (.*) https://%{HTTP_HOST}%[REQUEST_URI}

    However, all http:// requests are being redirected to the home page...

    help?

    How can the original htacess be modified to handle ssl...

    Steve

    opened by nexobus 6
  • Error 500

    Error 500

    Hi

    I am seeing error 500 when I test this .htaccess file. I saw someone had the same error 500 before so I tested to remove zlib compression out but no luck. All domain changes seems to correct. I cannot see any message in the log files either.

    What can I do to solve this? Iam using debian fully patched wheezy.

    Thanks

    opened by captainarmchair 4
  • Magento Connect Manager 404

    Magento Connect Manager 404

    This htaccess causes a 404 error when we open the Magento Connect Manager link.

    We are redirected to https://www.domain.tld/downloader/?return=https%3A%2F%2Fwww.domain.tld%2Findex.php%2Fadmin%2F, which is normal, but the content is fetched from the 404 page, not from the Mangento Connect Manager.

    opened by egdavid 2
  • Full URL redirection

    Full URL redirection

    Hey,

    Thx for sharing this. Apparently mod_rewrite is not redirecting the full url for me when ssl enabled through a load balancer. If I type domain.com/page it loops back to https://domain.com I tried to change the rewrites rules but breaks my /pages. Would you kindly help out?

    Thx in advance.

    opened by hfcandeias 0
  • Enabling CORS for serving the /skin on subdomain

    Enabling CORS for serving the /skin on subdomain

    using a subdomain for serving the /skin directory that might be having problems with the icon fonts showing in the browser. Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://static.*removed*.com/skin/frontend/ultimo/default/fonts/themeicons/ThemeIcons.woff?387osh. This can be fixed by moving the resource to the same domain or enabling CORS.

    opened by yasinkocak 0
  • multishop/language

    multishop/language

    Great,

    But what if I have a shop with to urls (languages)? In your example RewriteRule ^(.*)index.php$ http://www.yourdomain.com/$1 [R=301,L]

    so second url? RewriteRule ^(.*)index.php$ http://www.yourdomain.co.uk/$1 [R=301,L]

    same for

    redirect 301 /home http://www.yourdomain.com
    redirect 301 /home http://www.yourdomain.co.uk
    
    opened by Top-CMS 1
  • Verify Magento 2 Support

    Verify Magento 2 Support

    As we get closer to the Magento 2 release candidate, it would be good to verify if this is still the best .htaccess file for Magento.

    Suggestion:

    1. Verify if this project works well for Magento 2.
    2. Make changes / optimizations if necessary
    3. Fork to two projects or add a second file to this repository if it makes sense to have two different .htacess files. One for M1 and another for M2.
    opened by jay-saint 0
Owner
Creare
Creare
Magento 2 SEO extension will do perfectly for your better SEO.

Magento 2 SEO extension will do perfectly for your better SEO. This is a bundle of outstanding features that are auto-active when you install it from Mageplaza without any code modifications. It is also friendly with your store if you need to insert meta keywords and meta descriptions for your product.

Mageplaza 121 Oct 28, 2022
LaraNx Seo enables your Laravel app to store SEO and social media meta tag data in database instead of your code

LaraNx Seo enables your Laravel app to store SEO and social media meta tag data in database instead of your code. Moving marketing data out of your code base and into your database where it is easily modified.

srg 13 Dec 29, 2022
Module for integrating Fastly CDN with Magento 2 installations

FASTLY CDN FOR MAGENTO2 DOCUMENTATION Thank you for using the "Fastly CDN module for Magento2" (Fastly_Cdn). This package contains everything you need

Fastly 113 Dec 26, 2022
Enables developers to modify Magento installations (configuration, data) based on the given environment using n98-magerun.

Enables developers to modify Magento installations (configuration, data) based on the given environment using n98-magerun.

LimeSoda Interactive Marketing GmbH 73 Apr 1, 2022
A Magento community sourced security pre-flight checklist.

Magento Security Checklist This is a community sourced checklist of security measures to take before launching your store. Think of it as a pre-flight

Talesh Seeparsan 119 Oct 27, 2022
A Magento 1.x module which facilitates automatic purging of static assets from HTTP caches such as browser cache, CDN, Varnish, etc using best practices outlined within the HTML5 boilerplate community.

Magento Cachebuster Cachebuster is a Magento module which facilitates automatic purging of static assets from HTTP caches such as browser cache, CDN,

Gordon Knoppe 129 Apr 1, 2022
Magento 2 Blog Extension is a better blog extension for Magento 2 platform. These include all useful features of Wordpress CMS

Magento 2 Blog extension FREE Magento 2 Better Blog by Mageplaza is integrated right into the Magento backend so you can manage your blog and your e-c

Mageplaza 113 Dec 14, 2022
Rah backup - Takes backups from Textpattern CMS installations

rah_backup Packagist | Twitter | Donate Rah_backup keeps your important site safe from disastrous events. Rah_backup is an admin-side backup utility p

Jukka Svahn 5 Apr 24, 2022
Drall - a tool to that helps run drush commands on multi-site Drupal installations

Drall Drall is a tool to that helps run drush commands on multi-site Drupal installations. One command to drush them all. — Jigarius A big thanks and

Jigar Mehta 23 Nov 25, 2022
A simple PHP package for sending messages to Slack, with a focus on ease of use and elegant syntax.

Slack for PHP A simple PHP package for sending messages to Slack with incoming webhooks, focussed on ease-of-use and elegant syntax. Note: this packag

Regan McEntyre 1.2k Oct 29, 2022
Open Source Smart Meter with focus on privacy - you remain the master of your data.

volkszaehler.org volkszaehler.org is a free smart meter implementation with focus on data privacy. Demo demo.volkszaehler.org Quickstart The easiest w

volkszaehler.org project 176 Jan 4, 2023
Magento - Magento Community Editions

Magento Community Edition /// THIS REPOSITORY IS DEPREACTED /// 1.9.4.1 will be the last version update. Please switch over to OpenMage! Either to the

FireGento e. V. 107 Oct 17, 2022
Exploiting and fixing security vulnerabilities of an old version of E-Class. Project implemented as part of the class YS13 Cyber-Security.

Open eClass 2.3 Development of XSS, CSRF, SQLi, RFI attacks/defences of an older,vulnerable version of eclass. Project implemented as part of the clas

Aristi_Papastavrou 11 Apr 23, 2022
Laravel Plans is a package for SaaS apps that need management over plans, features, subscriptions, events for plans or limited, countable features.

Laravel Plans Laravel Plans is a package for SaaS apps that need management over plans, features, subscriptions, events for plans or limited, countabl

ángel 2 Oct 2, 2022
Nextcloud AIO stands for Nextcloud All In One and provides easy deployment and maintenance with most features included in this one Nextcloud instance.

Nextcloud All In One Beta This is beta software and not production ready. But feel free to use it at your own risk! We expect there to be rough edges

Nextcloud 1.1k Jan 4, 2023
This app is to measure the hand and eye co-ordination speed based on the score generated taken from Database

CoOrdinationSpeedTest Website link: https://skyward-punctures.000webhostapp.com/ Try this only when you are a psychiatrist ?? ?? This app runs as php

MANOJKUMAAR GOWDA 1 Jan 12, 2022