Magento

eCommerce Software for Online Growth

Magento Forum

From setting up your store to managing your products, pages and promotions to generating detailed reports, the Magento User Guide empowers the user to utilize the platform for all of its vast capacity.
Available in eBook and Print formats – Download Now!!!
   
Only index.php is working… Rewrites are broken
 
Kenja
Jr. Member
 
Total Posts:  2
Joined:  2008-11-02
 

I installed 1.3.0 and it appears that any link that contains /index.php/* works fine, but any seo friendly urls are pointing to missing pages. 

I’m guessing there should be a .htaccess file that instructs apache to rewrite the URLS (I chose apache rewrites during install), but it is not in the base directory.  Can someone tell me where to get the .htaccess file I need?  Or suggest something else I might have done wrong? 

Thanks!

 
Magento Community Magento Community
Magento Community
Magento Community
 
Intop
Jr. Member
 
Total Posts:  2
Joined:  2009-04-03
 

I have the same problem. Only works fine /index.php/ the other pages said:  404 Not Found
To entry to the admin panel I can,t go to this adress: “mypage.com/admin” y need to go: “ mypage.com/index.php/admin”
If I disable pretty urls in the admin panel all works fine.

I have installed the full instalation in DreamHost Server and no change any archive to install magento.

 
Magento Community Magento Community
Magento Community
Magento Community
 
Sindre|ProperHost
Enthusiast
 
Avatar
Total Posts:  826
Joined:  2008-04-24
 

The .htaccess is part of the default installation package. Some FTP clients does not show hidden files so first check if that is the case. Also. make sure mod_rewrite is installed and enabled on your server. In the .htaccess, set the RewriteBase directive to your Magento root directory.

 Signature 

Magento Optimized Web Hosting
Professional LiteSpeed Enterprise™ Powered Magento Hosting. (see our demo store and hosting plans)
Unprecedented performance and fully compatible with the Magento Connect Manager.

 
Magento Community Magento Community
Magento Community
Magento Community
 
Intop
Jr. Member
 
Total Posts:  2
Joined:  2009-04-03
 

Now work fine!
I see the root directory (where I installed magento) in the dreamhost server and don,t have any .htaccess archive.
I only upload the .htaccess original archive stay in the magento official download and all works fine in the server with pretty url (I active mod-rewrite in the magento panel admin)

Thanks for all.
And sorry for my bad english level. wink

 
Magento Community Magento Community
Magento Community
Magento Community
 
Kenja
Jr. Member
 
Total Posts:  2
Joined:  2008-11-02
 

Yes, the .htaccess was left in the directory I copied it from.  I’ve now moved it into the root directory on the server.  Rookie mistake.  Sorry.

However, the rewrites are still not working correctly.  I verified that mod_rewrite is enabled.  I’ve also been playing with the RewriteBase command in the .htaccess, but it is giving me “page not found” on any seo friendly URLs. 

My web directory on my Mac is at:

/Applications/MAMP/htdocs/mysite

I’ve set up my hosts file and apache to point dev.mysite.com to that directory. 

For the RewriteBase comand I’ve tried:

RewriteBase / # shows page not found for seo urls
RewriteBase /mysite/ # shows internal server error
RewriteBase /Applications/MAMP/htdocs/mysite/ # shows internal server error

Does anyone have any ideas for me?

 
Magento Community Magento Community
Magento Community
Magento Community
 
frosted
Jr. Member
 
Avatar
Total Posts:  17
Joined:  2008-07-22
Vancouver BC
 

Sup,

After confirming that mod_rewrite is enabled, also be sure to check that:
/etc/httpd/conf/httpd.conf

AllowOverride None
to
AllowOverride All

This pretty much will make the .htaccess file work, without this setting enabled, your .htaccess files will have no effect.

Cheers,
J

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
    Back to top
 
© Copyright 2010 Varien. Magento, eCommerce software, is a trademark of Irubin Consulting Inc. DBA Varien
Privacy Policy|Terms of Service
Magento Community Count
177728 users|1068 users currently online|277237 forum posts