We’re rewarding the question askers & reputations are being recalculated! Read more.

Questions tagged [.htaccess]

Questions about `.htaccess` files in Magento, used to configure the Apache webserver

Filter by
Sorted by
Tagged with
0
votes
1answer
167 views

one splash page for two websites magento

My goal here is to create one splash page for only the two with the same domain. This page would link to each website (website2.com/store1, website2.com/store2). Using Magento, I have 3 websites with ...
2
votes
1answer
777 views

Magento has become incredibly slow, timing out, errors, cpu abuse

I have been using Magento for around a month and it was never this troubled. I recently reinstalled it and put on a theme i bought, EM Gamewin. In order for this theme to work I needed to use the ...
1
vote
2answers
2k views

Magento REST API / Apache and “Content-Type header is empty”

Has anyone noticed this error message "Content-Type header is empty" when POST-ing to Magento REST API? I'm using Postman for testing and very-very surely I'm sending the Content-Type header along ...
1
vote
1answer
4k views

Magento - “Create Permanent Redirect for old URL” in bulk

We have 20,000 listings and had to bulk update Name (title) for all of them. We want the URL to be in accordance with new Name, but we want to keep the old URL's as well and have them 301 redirected ...
2
votes
1answer
850 views

How do I set .htaccess so people can't see cron.sh and mage?

How do I set .htaccess so people can't see cron.sh and mage? I kind of feel like nobody should be able to get to anything except index.php from the outside. Yet Magento's default .htaccess file has ...
2
votes
1answer
249 views

Magento no www. and a www. url

my magento website works only without www prefix, is there a way to access to my store with www prefix and without it at the same time? I have disabled url rewrite options. This is my .htaccess file:...
0
votes
2answers
7k views

Moving from http to https - redirect via htaccess file

All my urls were unsecured and was indexed by google like that. Now I'm planning to secure all my pages with https But when the old urls show up on google search they automatically resolve to the ...
2
votes
1answer
97 views

What is the best way to re-write Catalog Search Results?

We currently have a site that serves search results like the following: http://www.domain.com/catalogsearch/result/?q=firstparam+otherparam+stuff Ideally, we'd like it to serve it via: /firstparam+...
1
vote
2answers
612 views

404 error magento

Hello everybody, I have just moved my magentoshop from localhost to a online server. I did everything you need to do like changing url in database and clear cache. Now i have a internal server error. ...
3
votes
1answer
83 views

Tried everything to get index.php out of the URL and everything returns Not Found error

Things I've confirmed: Site is on Ubuntu 13.10 server at /var/www/mysite.com/htdocs/ Uncommented: /var/www/mysite.com/htdocs/.htaccess RewriteBase / Catalog URL Key = phones Desired URL for this ...
1
vote
4answers
13k views

How to restrict specfic ip address to access magento site in .htaccess file in magento?

I have an idea below text in .htaccess file in magento root folder. Order allow,deny tells your web server that the Allow rules are processed before the Deny rules. Order deny, allow means that the ...
1
vote
1answer
2k views

SetEnv variable in .htaccess in magento

In .htaccess file in magento if SetEnv variable is set how this is processed in magento. For example: SetEnv MAGE_RUN_CODE store How does this works in magento index.php and displays the ...
1
vote
1answer
69 views

/errors/ folder accessible?

I have noted that in default Magento .htaccess the /errors/ folder is accessible and open it in a browser list the content of the folder. How to address it ? Add Options -Indexes to the main ....
1
vote
1answer
793 views

301 redirect some products, categories and cms pages from old domain to new domain

I have this situation: Site1.com (3 store views: en, it and de) Site2.com (1 store view) I need to redirect everything from site1.com (only en store view which is default) to site2.com. ...