outre99 Posted April 17, 2013 Share Posted April 17, 2013 (edited) Hello all, i'm at the end of my rope here and desperatly need help from the community. I'm running PS 1.5.4 on a VPS. Everything works fine without friendly urls. But when freindly urls are enabled i can only see the home page but without product images. When hovering over links the friendly urls are clearly in effect, so that part is working. But trying to open any page besides home results in the following error. For example, http://living-organi...-oil-450ml.html results in this: Not Found The requested URL /en/healthy-oils/10-flax-oil-450ml.html was not found on this server. So that makes me think that the problem lies with .htaccess file. But since it's auto-generated i'm stumped as to what else i can do. I did see a discussion about the differences for Apache running with the CGI interface, but it also mentioned that it should have been resolved in 1.5.3. Other than that none of the forum threads that i could find address this problem. Please help. Edited April 17, 2013 by vekia (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted April 17, 2013 Share Posted April 17, 2013 Try to regenerate it (regerante htaccess) - moreover - regenerate also thumbnails in preferences -> images Link to comment Share on other sites More sharing options...
outre99 Posted April 17, 2013 Author Share Posted April 17, 2013 (edited) Hi Vekia, thanks for the suggestions but it didn't change anything. You can see the site here: http://living-organics.asia and the phpinfo() here: living-organics.asia/server_test.php Edited April 17, 2013 by outre99 (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted April 17, 2013 Share Posted April 17, 2013 It looks like the htaccess issue, are you sure that you've got friendly urls on your webhosting? Link to comment Share on other sites More sharing options...
outre99 Posted April 17, 2013 Author Share Posted April 17, 2013 Yes i agree. mod_rewrite is loaded according to phpinfo(). i made it public so you can take a look as well. maybe with a fresh eye you can see what i'm missing. living-organics.asia/server_test.php Thanks a lot. Link to comment Share on other sites More sharing options...
outre99 Posted April 17, 2013 Author Share Posted April 17, 2013 So after several more hours of poking around i have finally figured this problem out. The issue was with the AllowOverride directive in Apache configuration. The default site configuration on my VPS (and probably on most other VPS and shared hosting accounts) is AllowOverride None which tells apache to essentially ignore .htaccess. This was happening because i installed PS into the default location under /var/www. So the solution would be to either change the default configuration (which is not advisable) or create a virtual host in a different directory, and that's what i did. After setting up a new name based virtual host all i needed to do is to specify AllowOverride All under the <Directory> apache directive for the virtual host. Here's my virtual host configuration file: <VirtualHost *:80> ServerAdmin [email protected] ServerName your_domain.com ServerAlias www.your_domain.com DocumentRoot /var/www/path/to/virtual_host/folder <Directory /var/www/path/to/virtual_host/folder> Options Indexes FollowSymLinks AllowOverride All allow from all DirectoryIndex index.html index.htm default.htm index.php index.pl </Directory> </VirtualHost> This fixed all of the friendly url issues. Hope this will save somebody a few hours and some hair. Link to comment Share on other sites More sharing options...
vekia Posted April 17, 2013 Share Posted April 17, 2013 thanks for sharing your solution i can go ahead and mark this thread as solved :-) regards Link to comment Share on other sites More sharing options...
Recommended Posts