Saturday, July 22, 2017

Base url without index.php in magento

            echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_WEB);

Saturday, July 8, 2017

How to Remove index.php in codeigniter ?

Step: 1  Open the file config.php

--> Find the below code in file
$config['index_page'] = "index.php"
--> Remove index.php
$config['index_page'] = ""

// Find the below code in file
$config['uri_protocol'] = "AUTO"
// Replace it as $config['uri_protocol'] = "REQUEST_URI"

Step: 2  Go to your CodeIgniter folder and create .htaccess  file and Write below code in .htaccess file

<IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php/$1 [L] </IfModule>
rathoddhirendra.blogspot.com-Google pagerank and Worth