My magento is installed on Ubuntu Linux under /var/www/magento . This question looks like some of the questions in the archives but is acutally somewhat different. When I in
It is a mod_rewrite issue. I'm running Ubuntu and had the same problem during setup of apache and magento for a store migration.
Change /etc/apache2/sites-available/000-default.conf
to contain
<VirtualHost ...>
...
<Directory /var/www>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
</VirtualHost>
thus allowing rewrites for var/www
on the webserver.
To make apache process the rewrite rules from magentos .htaccess
file(s),
enabling the rewrite module via
sudo a2enmod rewrite
and restarting apache via
sudo /etc/init.d/apache2 force-reload
//(not service apache2 restart)
solved the entire issue for me.
See http://wiki.ubuntuusers.de/Apache/mod_rewrite and
http://wiki.ubuntuusers.de/Apache for a thorough explanation of how to set things up the right way.
Go to admin url of your site.
Suppose,http://example.com/index.php/admin/
Go to 'System' menu from navigation and click on 'Configuration'.
Under the 'General' tab in the left, click on 'Web'.
Open the 'Search Engines Optimization' section by clicking on it.
Then set 'Use Web Server Rewrites' value to 'No'
Did you try:
RewriteBase /magento/
and not RewriteBase /mymagento/ because your url is http:// localhost/magento/
Does your apache virtual host allow to overwrite the config, e.g.
<VirtualHost *:80>
...
<Directory /var/www/magento/>
AllowOverride All
</Directory>
</VirtualHost>
Enabling Apache rewrite module for wamp worked for me.
Do you have the appropriate .htaccess file in your Magento root? Also, you may run into issues with localhost
. It's advised to use 127.0.0.1 or to map dev domains in your hosts file.
Within the Magento configuration (accessed in the Magento Admin Panel through System > Configuration) there are some relevant settings that determine what the eventual Search Engine Friendly URL looks like.
Web > Search Engine Optimization > Use Web Server Rewrites
A setting which should always be turned on. If not "/index.php/" will be added to URL which is unnecessary and looks ugly. To enable this option, you also need Apache mod_rewrite enabled in your hosting environment.
Catalog > Search Engine Optimizations > Product URL Suffix
The default value here is ".html" which will be appended to each product URL. Some SEO-experts claim this is needed for better rating, other SEO-exports say it is not. For our MageBridge integration with Joomla! this setting needs to be empty.
Catalog > Search Engine Optimizations > Category URL Suffix
The same as above, but now categories.
Catalog > Search Engine Optimizations > Use categories path for product URLs
With this option enabled, the product URL will also include the category URL Keys. While it could be argued this causes duplicate content, product pages might also benefit from this because they become part of a bigger structure.
Catalog > Search Engine Optimizations > Use Canonical Link Meta Tag For Products
If you are really worried about duplicate content (which is not as bad as some people will tell you), then you can enable the canonical tag which tells search engines which page is leading once duplicate content has been detected.
Catalog > Search Engine Optimizations > Use Canonical Link Meta Tag For Categories
The same as above, but for categories.
further reading on the matter http://www.yireo.com/tutorials/magento/magento-administration/664-fixing-url-rewrites-with-magento