Questions tagged [.htaccess]

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

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

Magento MultiStore Rewrite rules does not works

I have this code in .htaccess RewriteCond %{HTTP_HOST} www\.fashionstudio\.ie [NC] RewriteRule .* - [E=MAGE_RUN_CODE:default] RewriteCond %{HTTP_HOST} www\.fashionstudio\.ie [NC] RewriteRule .* - [E=...
1
vote
1answer
37 views

how can i change all urls of old website

i just remove my website from hmsaver.com to homemarket.ae now every thing is working but i want to ask is that possible if any visitor came from google to hmsaver.com and he redirect with same url to ...
0
votes
1answer
330 views

Who to “enable Magento to use the distributed configuration file .htaccess”?

One of the steps in this Magento Apache2 installation guide is to "enable Magento to use the distributed configuration file .htaccess". In that step, they have a link to Apache2 page guideline .... ...
1
vote
1answer
1k views

301 Redirects dont work with index.php in OLD URLs

I moved my old store to magento, Im using 1.9.2 CE Magento. Old store was up and running for years and I didnt want to loose SEO URLs, so when I try to do 301 redirects, Im facing a problem. If old ...
-1
votes
1answer
91 views

magento website url is make a short [duplicate]

I wanted to make a short URL possible ? my hosting server :bluehost domain :different company to godomall ex) http://www.example.com/magento/index.php -> http://www.example.com/ or http://...
1
vote
2answers
916 views

Magento htaccess frontend authentication

Is it possible to block just frontend with htaccess? If I setup normal htaccess authentication to root then it block uploading images from admin. I'm aware there is IP blocking possibility but ...
0
votes
1answer
298 views

Parse error INDEX.PHP for sub-directory

I have created new web site for language code with sub-directory and copying two files index.php and .htacess from the root to the individual sub-directory.Then edit index.php file as: define('...
1
vote
1answer
974 views

var .htaccess not activating - cacheleak vulnerability

I recently ran a magereport.com scan on one of our magento sites and it reported a cacheleak vulnerability. In my var folder, there is an .htaccess file but it is not activating and the ...
0
votes
0answers
46 views

Redirect magento site

I need to redirect the whole website to a specific url i.e to domain.com/customer/account/create. using htaccess? How I can do that. I tried the following stuff it it show redirection loop ...
15
votes
6answers
35k views

Local installation of Magento 2 doest not generate files in the pub/static folder

I've just installed Magento 2 Community Edition with sample data (downloaded from their website and not installed with composer) locally via MAMP. The installation process was succesful, but all files ...
1
vote
0answers
65 views

Subfolder as Magento storeview

I am trying to access a store view in Magento 1.9.1.1 from a subfolder. I have: www.webshop1.nl => store_1 + default www.webshop2.nl => store_2 + storeview_NL www.webshop2.nl/en => store_2 +...
1
vote
2answers
135 views

Why is Magento admin URL so long and complicated on lcoalhost?

I have just uploaded Magento on localhost and its URL is simply this localhost/magento but when I go on its admin part i.e localhost/magento/admin part url redirects to a very complicated & ...
1
vote
1answer
347 views

Caching css files in Magento

Because of the Black Friday, I've added some products as an offer. They can be shown on the main page with a block I had initially hidden with some CSS on my styles.css file. This morning, I removed ...
1
vote
1answer
91 views

Admin not working on development site

A client's web hosting support have created a development site for me @ dev.example.com. When I try to load http://dev.example.com/admin, I am redirected to https://dev.example.com/index.php/admin/, ...
1
vote
1answer
125 views

.htaccess rewrite

I have this url which is working: http://www.example.com/linea?linea=7 It gives me all the products of the category "linea" filtered by the custom parameter "linea", in this case the value is equal ...
1
vote
1answer
167 views

My shopping cart works randomly when moving to different pages

I've spent hours and days trying to fix it but I can't figure out why when I move from one page to another my cart changes. First of all I add a product to the cart. The cart updates itself and I can ...
0
votes
1answer
2k views

While import/Export attributes get 500 internal server error [closed]

I am working on magento-1.9.2.1. I want to import and export attributes. for this, When I goto system ->import/export ->attributes ->import or export. I got following Internal server error. ...
2
votes
1answer
3k views

Permission Denied htaccess in folders where no htaccess file even exists

This permissions issue comes up in the server log. It doesn't stop the site from loading but it does stop a lot of the site from functioning. Some things I did fix through permissions but things like ...
0
votes
2answers
161 views

Patch failed because of .htaccess

I have Magento 1.9.2.1 installed and ran the script to install the latest security patch, SUPEE-6788. I got a fail message because of the .htaccess file. I uploaded the .htaccess file from the clean ...
2
votes
1answer
1k views

Magento replacing .htaccess file in root directory?

Magento replacing my custom .htaccess file? every time my home page lands in : page is not redirecting. the url was www.example.com/errors/503.php i would like to make clear there was no maintenance....
0
votes
2answers
2k views

Remove specific word's from url using .htacsess

I'm trying to rewrite and remove some words from the URL using .htaccess. I have en url like this: http://example.com/es/ropita-de-bebe/chica/vestidos.html/ and I want to leave it like this: ...
3
votes
2answers
5k views

htaccess redirect https to http except specific pages

I want to redirect https to http for almost all pages, except for checkout, cart and account. Especially to improve speed. How do I define that inside my htaccess? All my rewrite rules in htaccess: ...
0
votes
2answers
603 views

Magento 1.8.1.0 can't login to admin panel - htaccess/memcache suspected

I have recently setup one of my client's live site to local. And was unable to run it on local instantly just after modifying core_config_data and local.xml, then I opened .htaccess and found ########...
1
vote
0answers
154 views

Sub-domain Stores on Local Dev Server

I have a live Magento site with a main store and also white-label stores located on sub-domains, all running out of the same Magento website. I'm using .htaccess to direct sub-domains to the ...
0
votes
1answer
417 views

How to remove index.php in product view page?

For some reason i kept index.php in url but i want to remove index.php in Product individual page only. My current url : https://domain.com/index.php/category-names/product-name.html i want to this ...
0
votes
3answers
2k views

Magento multi-store configuration

I'm trying to run multi-store environment (2 websites) on single Magento instance according to this post :https://www.nublue.co.uk/blog/creating-a-magento-multi-store-using-symlinks/ but I can't ...
1
vote
1answer
1k views

How to prevent duplicate content issues caused by index.php in urls?

I've been trying to prevent our homepage from displaying as both www.domain.co.uk & www.domain.co.uk/index.php but now i've realised that every other page displays with /index.php in the url. ...
0
votes
1answer
289 views

Want to remove index.php from the URL

Hi My site name is xpressbuyer.com. I have tried almost all solution, but nothing seems to be working. Below things i have done. Add code in .htaccess Set Use Web Server Rewrites to YES in Search ...
0
votes
3answers
450 views

what are the correct setting for the .htaccess file?

My hosting company deleted my .htaccess file (they thought they were helping me resolve a different problem). Now - my .htaccess has the following info only: Order deny,allow Deny from all I found ...
4
votes
0answers
80 views

Mobile browser is unable to load the XML data of Magento site [closed]

I am new to magento. My question here is that I am unable to load the XML data in mobile browser but with the same link i am able to display the xml data in Desktop browser . Data is coming out of ...
1
vote
0answers
41 views

Magento 1.8 - Very strange issues with redirects caused by our hosts tech support team

We asked our hosts tech support to change the 302 redirects to 301's...after numerous attempts by them i gave up on them and accepted that they could not do it. Now they have left us where none of ...
1
vote
2answers
1k views

Htaccess - How can i make this redirect a 301 instead of 302?

My website redirects everything from http to https but 1 of the redirects is a none cacheable 302 redirect according to a few seo checkers i use. How can i get the following code to be a 301 redirect ...
1
vote
1answer
235 views

Change URL for /cat/

I want to put a Magento Redirect rule to change the URL for filtering products and category. When I use the filter in a category, the urls are look like this : FROM: http://example.com/redwine TO :...
0
votes
0answers
26 views

.htaccess redirect to ssl and non-www [duplicate]

I need a redirect handeling url's like this: http ==> https www ==> non-www Somebody calling http://www.mydomain.de/mypath ==> https://mydomain.de/mypath At the moment he gets redirected to https://...
1
vote
0answers
44 views

Picture generation does not work after URL redirect in .htaccess

Picture generation does not work after URL redirect in .htaccess with the following script: <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{...
2
votes
2answers
429 views

.htaccess file in magento contains what?

I have my .htaccess contains the following: Mac OS X 2¢ÔATTRÔ˜<˜<com.apple.quarantineq/0002;5596b949;Safari;F9417E7F-EAFC-41E0-BA60-E4E5FB339DEA I don't know if this file is should be like ...
7
votes
1answer
259 views

Magento Duplicate Content Issue .htaccess rewrite 301 forwarding

i have some issues with duplicate content on my website. in the past i had diverse stores setup and i disabled them but the urls seem to exist still. i would like to set up a forwarding rule example: ...
1
vote
3answers
2k views

Magento HTACCESS query 301 redirect all but admin

Hi hopefully someone can help. I have added a 301 redirect to change from an old domain name to a new domain. The magento build is still on the old domain also (but with no follow / no index) I ...
2
votes
3answers
4k views

How to resolve .htaccess not working on localhost? [closed]

I copy all files of my website for to run it on my PC, but when I want to see pages it doesn't work and show me the phpinfo(). I have .htaccess in root and this is the code of it but it doesn't work ...
2
votes
1answer
422 views

htaccess redirect except backend

We are running a magento installatino with two websites. I have configured a .htaccess redirect with GeoIP in order to redirect visitors from one country to website number two. This works, however ...
2
votes
1answer
97 views

my .htacces is empty

I would edit the .htaccess file, but there only was : Order deny,allow Deny from all that is normal? This file was in the subdirectory app , in the root directory there wasn't any file
1
vote
1answer
381 views

Yandex bot in my website

I have noticed that when I'm surfing my website, where it appears the Waiting for www.whatever.com... on the left-bottom corner from google chrome it appears suddenly a Waiting for mc.yandex.com... ...
1
vote
1answer
389 views

magento shop down by bots crawling

I have a problem with my magento store. Every now and then when a bot crawls my shop, the website goes down. I have made changes to robots.txt and .htacces. Also varnish is installed and a full page ...
0
votes
3answers
614 views

Moved from http to https but include www in url

Trying to setup my site so that its on HTTPS AND includes the WWW in the URL. After a while of searching I found a few posts that helped me redirect to https: stackoverflow.com/questions/25527671/...
3
votes
1answer
1k views

Magento under WordPress as subdirectory not working

I am using GoDaddy server. I have WordPress as root directory and i have setup Magento from local to server inside root as subdirectory. Magento home page is working fine,but when i try to open any ...
2
votes
4answers
10k views

Remove parent categories from subcategory URLs

I realise similar questions have been posed before, but I have an additional caveat when I ask the following question. How can Magento URLs be rewritten such that: http://www.example.com/category/...
5
votes
2answers
881 views

How to add another web app to a subdirectory within Magento?

We are running magento on our site www.xsmoke.com. The site is international, so we are using "/country code" - e.g.www.xsmoke.com/de/ etc. Now we would like to install wordpress in one of the ...
2
votes
1answer
729 views

How to restrict admin access based on Role Created with IP?

I have created 2 separate roles under Permission -> Roles. 1). For Employees 2). For Suppliers I was wondering how to restrict Role: Employees to access admin area only from specific IP. We have ...
1
vote
1answer
12k views

PHP.ini and htaccess files missing 1.9 magento

Hi im creating a magento website for a tile company and having some problems with "memory size of 33554432 bytes exhausted" when i try to create a configurable product it gives me front end errors and ...
1
vote
1answer
187 views

Multi-website Setting

To setup multi-website store, I'm following this https://www.magentocommerce.com/knowledge-base/entry/tutorial-multi-site-multi-domain-setup I think I did everything but Edit the .htaccess As the ...