500 INTERNAL SERVER ERROR MAGENTO PRODUCT MEDIA FOLDER ? GODADDY

Thursday, 16. August 2012

I have had this strange issue while moving a site from our development server to the GoDaddy Server.

After some hours of head scratching, found a “solution” to be removal of .htaccess file inside the media folder!

Silly, and I am not even sure this is the best solution but it works.

If you have a better idea, please drop us a comment!

** UPDATE

Apparently, all you need to do is to do a very minor change on the file.

Open it up and right at the top, change:

Options All -Indexes
<IfModule mod_php5.c>
php_flag engine 0
</IfModule>
...

TO

#Options All -Indexes
<IfModule mod_php5.c>
php_flag engine 0
</IfModule>
...

Magento Store Urls – How to get Magento Store URLs programmatically

Thursday, 4. August 2011

Here is how to programmatically get some of the most common URLs for Magento store when developing with Magento

Magento Javascript Folder

Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_JS);
http://magesite.com/js/

Magento Index Page

Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_LINK);
http://magesite.com/index.php/

Magento Media Folder

Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_MEDIA);
http://magesite.com/media/

Magento Skin Folder

Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_SKIN);
http://magesite.com/skin/

Magento Root

Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_WEB);
http://magesite.com/

Magento Current Theme Folder

$this->getSkinUrl(”)
Returns something similar to: http://magesite.com/skin/frontend/default/default/current_theme/