go to Magento admin panel –> system –>configuration –>web –>Search Engines Optimization –> Use Web Server Rewrites –> Yes
create web.config file under magento root folder
--------------------------------------------------------------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<configuration> <system.webServer> <rewrite>
<rules>
<rule name="Magento SEO: remove index.php from URL">
<match url="^(?!index.php)([^?#]*)(\?([^#]*))?(#(.*))?" />
<action type="Rewrite" url="index.php/{R:0}" />
</rule>
<rule name="Remove index.php Rule" stopProcessing="true">
<match url=".*" ignoreCase="false" />
<conditions>
<add input="{URL}" pattern="^/(media|skin|js)/" ignoreCase="false" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />
</conditions>
<action type="Rewrite" url="index.php" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>
---------------------------------.HTACCESS for APACHE--------------------------------------------
if not work please below code in htaccess
RewriteBase /
RewriteCond %{HTTP_HOST} ^yoursitename\.domainExtantion (com, net, in)
RewriteRule ^(.*)$ http://www.your_site_name.com [R=permanent,L]
------------------------------------------------------------------------------------------------------------------
RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [NC,L]
RewriteBase /
RewriteCond %{HTTP_HOST} ^yoursitename\.domainExtantion (com, net, in)
RewriteRule ^(.*)$ http://www.your_site_name.com [R=permanent,L]
------------------------------------------------------------------------------------------------------------------
RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [NC,L]
It's the best time to make a few plans for the long
ReplyDeleterun and it's time to be happy. I've read this
put up and if I may I desire to counsel you some fascinating things or
tips. Maybe you could write next articles relating to this article.
I want to read even more things approximately it!