xenophobia Posted June 26, 2009 Share Posted June 26, 2009 I having a problem here. Im using the Zend_Controller to do the url rewrite. when I tested on my Windows server, everything okay. No problem. But when I tried on my Linux server, when I type in this url: http://www.domain.com/mysite/controller I get page not found. How ever, I have to do this: http://www.domain.com/mysite/index.php/controller Only then the page will be displayed. My apache conf.d is as follow: DirectoryIndex index.php AllowOverride All Order Allow,Deny Allow from All What could be the possible problems? Thanks for reading. Link to comment https://forums.phpfreaks.com/topic/163727-solved-url-rewrite-not-working/ Share on other sites More sharing options...
xenophobia Posted June 26, 2009 Author Share Posted June 26, 2009 Additional information, the page not found message as follow: This is when I request: http://www.domain.com/<mysite>/controller Not Found The requested URL /opt/netregy/www/<mysite>/index.php was not found on this server. Apache/2.2.3 (CentOS) Server at www.domain.com Port 80 Link to comment https://forums.phpfreaks.com/topic/163727-solved-url-rewrite-not-working/#findComment-863952 Share on other sites More sharing options...
xenophobia Posted June 26, 2009 Author Share Posted June 26, 2009 Found the solution. Have to put this in my .htaccess: RewriteBase /<mysite>/ Link to comment https://forums.phpfreaks.com/topic/163727-solved-url-rewrite-not-working/#findComment-863991 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.