creare / magento-htaccess Goto Github PK
View Code? Open in Web Editor NEWA htaccess boilerplate for all Magento Community installations. Features focus on speed, SEO and security.
A htaccess boilerplate for all Magento Community installations. Features focus on speed, SEO and security.
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?
php_flag zlib.output_compression on
has an error 500
Anyone knows how to set up cron in 1and1 server for magento website.
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
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:
I think it's would be just a slight modification to mod.php7 value correct? How could you support both I'm wondering?
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.
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.
After adding this htaccess file I can't change preferred state in magento connect and upgrade/install extensions.
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
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
Let me know how can I help..
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
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
Hi guys,
I'm not sure about this but can you guys confirm If htaccess works with https?
Regards,
Mark
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.