Git Product home page Git Product logo

magento-htaccess's Introduction

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).

magento-htaccess's People

Contributors

adampmoss avatar akira28 avatar bavington avatar crearelead avatar icyapril avatar tomcreare avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

magento-htaccess's Issues

Cannot execute cron.php

I am utilizing this .htaccess but my host executes the cron.php via browser (as well as some others) and the rewrites prevent this from happening. Entering mysite.com/cron.php or www.mysite.com/cron.php redirects this to the search page. Is there a way to change this?

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

https issue?

Hi guys,

I'm not sure about this but can you guys confirm If htaccess works with https?

Regards,

Mark

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

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

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

Magento Cron

Anyone knows how to set up cron in 1and1 server for magento website.

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.

php 7 compatibility

I think it's would be just a slight modification to mod.php7 value correct? How could you support both I'm wondering?

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.

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..

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.