2

Currently I am struggling with the categories and products showing 404 errors when I navigate away from the working home page.

I was able to install Magento and I am using a copy of an existing working site. The purpose is to use this new site as my dev sandbox. I am using Magento 1.11. This is also a multiple store site.

Things I have tried: Reindex the Catalog URL Rewrite, this unfortunately never completes.

To try and solve this I have deleted all the lock files and then I have also deleted all the entries in the core_url_rewrite table.

I have also changed the Base URL in the core_config_data table to my new URL.

Thank you in advance!

PHP Bugs
  • 1,133
  • 12
  • 23
dj22
  • 245
  • 6
  • 18
  • I have but it seems that Reindexing the Catalog URL Rewrites never completes. – dj22 Jul 19 '12 at 19:36
  • you can try from command line: `php -f shell/indexer.php reindexall` – B00MER Jul 19 '12 at 19:48
  • add index.php between your base url and your request params, e.g. `http://site.com/index.php/cms/page/view/id/home` vs. `http://site.com/cms/page/view/id/home` – benmarks Jul 19 '12 at 19:51
  • benmarks, that worked... Why did that work? Also what do i have to do to make sure that is included? Do I need to add that to the RewriteBase in the .htaccess file? – dj22 Jul 19 '12 at 20:06
  • You are probably missing this from your VirtualHost configuration (assuming Apache): ` AllowOverride All ` – nachito Jul 19 '12 at 20:12
  • 3
    Need to enable mod_rewrite? Every time I've had off-home-page 404's was because SEO Use Server Rewrites was set to Yes, but the DSO module wasn't loaded. There also should be two lines: **Options +FollowSymLinks** and **RewriteEngine on** in your Magento root .htaccess file – Fiasco Labs Jul 20 '12 at 02:22

2 Answers2

1

Just like Fiasco Labs said, you probably turned on URL Rewriting:

System -> Configuration -> General -> Web -> Search Engine Optimizations -> Use Server Rewrites but don't have mod_rewrite Installed/Enabled.

Either Install/Enable it on your host, or just turn the server rewrites off.

Another reason, if you HAVE mod_rewrite Installed/Enabled, you might be missing .htaccess file in your Magento root.

Community
  • 1
  • 1
Jan Myszkier
  • 2,714
  • 1
  • 16
  • 23
0

even with mod_rewrite enabled, the error can be a misconfiguration of apache. Have a look at etc/httpd/conf/httpd.conf file. Find the part where is defined (standard Apache config dir). You should find:

AllowOverride All

If there is a

AllowOverride None

Change it to All and the magic happens. Then restart Apache with:

sudo service httpd restart