Questions tagged [htaccess]

Denotes questions related to htaccess. A .htaccess (hypertext access) file is a directory-level configuration file supported by several web servers, used for configuration of site-access issues, such as URL redirection, URL shortening, Access-security control (for different webpages and files), and more.

Filter by
Sorted by
Tagged with
2
votes
1answer
1k views

URL not rewritting when installing and setting up SSL on server in Magento

I have installed SSL on my Apache Server and am trying to enable SSL on frontend for my website. I did the standard Admin setup ie(change secure url to https and have enabled URL rewrite). When i ...
5
votes
5answers
66k views

Getting 404 Not Found Error on every page except index.php [closed]

Because of some reason my site stopped working. After that I have uploaded the backup which I had created earlier. I am getting a "404 Not Found Error The resource requested could not be found on ...
1
vote
2answers
777 views

multistore sitemap rewrite /sitemaps/domainname.com/sitemap.xml

is there an easy way to rewrite our sitemap to Magento sitemap directory? So: example.com/sitemap.xml www.example.com/sitemap.xml anotherexample.com/sitemap.xml www.anotherexample.com/sitemap.xml ...
2
votes
1answer
2k views

Protect Magento Directories

I am just about to put a Magento site live and wondered what the best method is to protecting Magento's directories. At the moment I have simply stuck in the following into my htaccess RewriteRule ^(...
1
vote
2answers
1k views

Redirect/rewrite home page domain.com to store view domain.com/en/

I have enabled Add Store Code to Urls to access the different store views of my Magento website, but now www.domain.com and www.domain.com/en/ have the same content. To avoid duplicate content I would ...
1
vote
1answer
248 views

Magento Parameter not adopt when use mod_rewrite

first of all I have to say that this looks for me like a very complex problem. I just tried about 30 variants and solutions I found, none of them works perfect. I have a Magento 1.8.1.0. Community ...
2
votes
1answer
251 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:...
2
votes
1answer
4k views

Strange .htaccess and base URL redirect happening

I have an odd scenario that I cannot figure out. When Auto-redirect to Base URL is set to 301 or 302, the homepage of my website redirects correctly to what I have defined as my base URL (I am using ...
0
votes
1answer
1k views

Replacing multiple slashes in URL with a single slash

I have the following htaccess rule that I would like to use in order to redirect www.example.com//test.html (any number of consecutive slashes) to www.example.com/test.html. Options +FollowSymLinks ...
0
votes
1answer
118 views

Magento 1.8.1 on VPS & set-up of HTPS

after recent announcement of Google to rank https/ssl site higher we are investigating how to do this. Situation: we run Magento 1.8.1 multistore on 1 IP with 4 stores & in total 12 storeviews. ...
0
votes
1answer
1k views

magento after migration 404 without index.php and theme setting blank [duplicate]

After migrating magento, site is full of 404 errors. Found that, if i can manually put index.php before every url - hurrey no errors Able to login to admin with same index.php trick, and now i want ...
1
vote
2answers
2k views

301 Redirect Not Working. URL syntax bad for the .htaccess file? [closed]

I'm trying to redirect a few URLs. Other URLs work fine, but this group of URLs do not. Does anyone know what the issue is? I've tried to redirect through Magento and through the .htaccess. This is ...
2
votes
1answer
2k views

Why do special characters in search terms are processed as encoded characters (only on Production Server)?

This issue only happens once the site has been deployed to Production Server. On Development Environment works as expected. Using Magento 1.6.2.0 CE, Locale: español (Spanish) Search works just ...
2
votes
1answer
121 views

Certain short strings in URL prefix causing 404 [closed]

OK, so, been scratching my head all day with this one. Essentially - I have a Magento installation which sits off the back of a WordPress installation: localhost/ [this is where WordPress sits] ...
6
votes
3answers
10k views

Admin not saving changes

I've seen a lot of people with similar issues, but none of the many resolutions I've seen online have worked for my situation. Magento 1.8 Community Edition. Admin changes are not being saved. ...
2
votes
1answer
862 views

Magento 1.9 local.xml security warning

I'm trying to setup Magento 1.9.0.1 under Apache 2.4.9 without the access_compat module. As of Apache 2.4 the old access control directives are deprecated [1] and should no longer be used. I'm now ...
2
votes
6answers
30k views

Magento 1.9 - .htaccess file missing

I have a problem with the .htaccess file in the root category of my server. It is not there. I searched for hours (google), but i haven't found any solutions. (Magento 1.9) I activated "display ...
0
votes
1answer
3k views

multi store view sitemap.xml url rewrite

I have magento multi store view installation with structure like this: example.com/it example.com/fr example.com/de I wan't to configure sitemap.xml for every store view. Sitemap.xml files are ...
1
vote
2answers
2k views

Remove index.php from www.domain.com/abc/index.php/xyz

What's happening: domain.com/abc/index.php/xyz gets redirected to www.domain.com/abc/index.php/xyz I'd like: domain.com/abc/index.php/xyz gets redirected to www.domain.com/abc/xyz In the document ...
4
votes
0answers
11k views

What is the optimal setting for max_execution_time? [closed]

I'm looking at improving our server performance, and noticed that the stock EE .htaccess file sets the max_execution_time to 18000, which really seems like a typo. 18000 seconds is 5 hours. Should ...
2
votes
2answers
9k views

Gzip Comporession and leverage Browser Cache Not working

i am trying to optimize my store. to optimize it i have added Gzip Code and Leverage Browser Cache Code in .htaccess File. There are 2 .htaccess file on my server. one is .htaccess and second is ....
0
votes
1answer
388 views

Add CSS file to page.xml using Filename-based cache busting?

I am using Filename-based cache busting, to make sure every time I make a change to a file resource revving happens (Steve Sounders Post). For this matter I am using the following .htaccess file ...
0
votes
1answer
329 views

Password product one URL

I am trying to password protect one URL on a Magento site. I have my .htpasswd setup I have tried using the directive - NO LUCK. I also tried the following: SetEnvIf Request_URI ^/url-name ...
1
vote
1answer
1k views

301 permant redirect Issue

I have following issue. I developing a new Magento store which data is imported from a old xt:Commerce store. The redirects in .htaccess works but xt:Commerce has URLs included with index.php and ...
2
votes
4answers
18k views

Magento secure and unsecure url redirection issue

I am facing issue regarding redirection. My system has been already live.Google already cached all pages with https . In past my secure url and unsecured were both https://www.example.com. But now ...
1
vote
1answer
1k views

Use a non-Magento page as homepage

As my webshop homepage I want to show a statis html page index.html. How can I accomplish this with .htaccess rewrites? All other pages are from the Magento installation. event: example.com ...
0
votes
3answers
680 views

Site removing www from address in magento

I want that user can access my site with or without www.But it didn't work with wwww. My site removing www from address and redirect to non www address like http://example.co.uk.I write this code in ...
2
votes
2answers
9k views

Magento htaccess error

I have three website to be uploaded on single server. The server admin has set it up as. 1) The main website to be put on root folder 2) two subfolders are made in which i have to put other two ...
5
votes
1answer
2k views

Magento rewrite category/product URLs leading to 404 page

I have many category and product URLs coming from google which gives 404 errors. The reason is google has indexed most of the pages without .html (from old site) while now I have all the pages with ....
4
votes
3answers
11k views

Set individual image cache/expire date

I have a question regarding the image caching and although I am not quite sure, if Magento SE is the right place for this kind of question, but I thought it would be interesting for others to know as ...
3
votes
4answers
16k views

best magento htaccess for performance

we have installed several extensions and bits and pieces of code to optimize Magento htaccess. Now I see the code has gotte quite long and I am not sure this is all conflicting or supporting ... So ...

1 2 3 4
5