How do I build multi sites in magento using wamp server - .htaccess

I am new to magento, I have worked on VirtueMart for joomla for a year now and I noticed it has no multistore ability until a friend introduced me to magento. I have succesfully installed magento(1.7.0.2) into WAMP 2.2 (PHP v5.3.13) on my Windows7.
I succesfully created root categories just as directed here: http://www.templatemonster.com/help/magento-how-to-set-up-and-manage-multiple-stores.html but in my own case, I am using sub-directories (ie //domain/magento as main store and //domain/magento/crunchies as store2).
A root category was created at the backend for crunchies. I copied both index.php and htaccess from magento folder (c:/wamp/www/magento) to crunchies folder (c:/wamp/www/magento/crunchise).on the crunchies' copy of index.php, $mageFilenam =‘app/Mage.php’; I change it to $mageFilename=‘../app/Mage.php’;
And saved changes, I also open up the copied htaccess file and added the following to the end of it:
SetEnvIf Host.*MainWebsite.*MAGE_RUN_CODE= base";
SetEnvIfHost .*www.crunchies.com.*MAGE_RUN_TYPE="cruncies_code";
Where website names created at System>manage store of backend are: Main Website(for main store) and www.crunchies.com (for store2).
When I point to domain/magento on my browser, it shows home page but when I point to domain/magento/crunchies, I get :\"mydirectery"../app/Mage.php was not found.
Please how do I solve this issue? Is there any other setting I'm missing out in my wamp config?

Related

.htaccess is restricting access to root level pages. How do I stop this?

I have several webpages on my root directory (e.g. index.htm, home.php and home_page.php) which all are starting points for different versions of my website.
I ahve upgraded PHP version (as advised by my hosting service) from 5.3 to 5.6. This has put a .htaccess file on my site and now my PHP pages on root won't load and I get a "500 Internal Server Error" message.
The .htaccess file was created by the web hosting provider when the PHP version was updated.
The content of the .htaccess file is AddType application/x-httpd-php56 .php .php5.
If I delete the .htaccess file then my pages work OK as before but I do not know what the implications of deleteing this file are.
How do I log my exception errors?
Any help on how I can getall of my pages to be displayed, please?

Exclude a folder in Xenforo

I have installed Xenforo in my public_html in my Cpanel which means my forum is available in site.com
Now I want to add another folder contains my web app and want to access it in site.com/myapp. I created a folder "myapp" in public_htmll beside Xenforo files and now when I enter the URL site.com/myapp it goes to a 404 page of the forum. I need to Xenforo exclude this folder and let the app lunch in this address. How can I do that?
You should move your XenForo installation to a subdirectory - many people use site.com/community as the forum root and either have a separate home page at site.com/ or just redirect the domain root to the /community URL.
This then allows you to have other apps running in other subdirectories like site.com/myapp without issue.
In XenForo 2.x this works fine, If you have enabled full Seo friendly urls from admin panel, Make sure you have proper .htaccess file in place. In you case, I believe you did not upload .htaccess file in public_html folder

I don't have .htaccess file for my magento installation. How to get .htaccess file to remove the "index.php" from URL

I don't have my .htaccess file for my magento installation which is by default present for all the fresh magento installation.
Now I have to remove "index.php" from my wesite url and found out htaccess file needs to be edited. But, there is no .htaccess file in my magento root folder.
Also, I have made a lot of changes to the website and don't want to do a fresh installation to get the .htaccess file.
Also, when I access my admin panel it also needs "index.php" in the URL.
Please, can someone help me with this.
To Remove the inde.php from the URL you need to enable Web Server Rewrites.
You can enable Web Server Rewrites suing below steps:
Login in Backend, from Top Navigation click on System >> Configuration >> Web
Select Use Web Server Rewrites to YES in Search Engines Optimization group.
If you need .htaccess file, you can donwload the compatible magento zip file and can use its .htaccess. There is no need to install magento for this.

magento bae url not working after dulicate site

I have a site http://www.gingerlily.fr
i copy those file and create sub directory on root called test and uploaded the file to it
duplicated db and apply update for all base url db and other configurations. (http://www.gingerlily.fr/test)
but the problem is when i access http://www.gingerlily.fr/test
site i always show root urls and other js and images loads from root magento installation. i try a day for thi but no luck.
can anyone help me for this something wrong with httacess file or any other wrong with this ?
thank you
I have seen your http://www.gingerlily.fr/. Correct me if i am wrong your trying to duplicate your site to test directory. But in magento your can't copy and duplicate site like PHP /Html here your files of magento site need to be first install and you can replace your module and theme files.

yii, Development and URL issues

We have our server which runs the site at 173......54/
For development we want to have a copy of the code that can be tested at 173.....54/~me/site
When I install a copy of Yii and the code at ~me/ folder and access 173.....54/~me/site I am able
to see the newly installed index html. However, if I try to move to 173.....54/~me/site/book or a user register page or any other page the other (main) Yii application reads the code as a link not found instead of the development Yii application.
Am I supposed to update a the htaccess file to ignore requests within /~me ? If so how should it look? Or am I missing something?
Thanks again!
No need to make ignore in other .htaccess, the dev site .htaccess will take care of it.
In your index.php at the root of your dev site you need to point $yii at your Yii framework/yii.php
and then in the .htaccess in the root of your dev site you need to point RewriteBase to your dev site root.
Also make sure you point to the correct configuration file corresponding with your application in index.php

Resources