Pascal Posted January 13, 2012 Share Posted January 13, 2012 (edited) Hi, I just installed processwire locally under OS X 10.7. I want to try it because it seems to be exactly what I need for several projects. At first I had the this problem and the solution in that post worked (although I had to change the specific httpd.conf of my OS X user account, which overrides the general httpd.conf). Now apache reads my .htaccess. The problem is that now I am getting the same 404 error on all links except the home page, including the admin page: Not Found The requested URL /Users/pascal/Sites/process/index.php was not found on this server. Apache/2.2.20 (Unix) DAV/2 PHP/5.3.6 with Suhosin-Patch Server at pascal-pc.localdomain Port 80 I have searched the forum but have not encountered any solution. Does anyone have an idea? Can't wait to dig into ProcessWire. Thanks in advance for your support! EDIT: I just noticed that visiting the root directory (/process in my case) takes me to the home page. The links seem to be correct (/process/about/, /process/templates/, etc. and /process/processwire/ for the admin login) but every link that goes deeper into the structure results in the above 404 error, no matter if they seem correct or if I use random characters like /process/asdfgh/. Edited January 13, 2012 by Pascal Link to comment Share on other sites More sharing options...
ryan Posted January 13, 2012 Share Posted January 13, 2012 Edit the /.htaccess file that appears in the root of the PW install. There is a line in there that refers to "RewriteBase". Try uncommenting this line and typing your dir into it. This is needed on some installs (though rarely). Link to comment Share on other sites More sharing options...
Pascal Posted January 16, 2012 Author Share Posted January 16, 2012 Thank you very much! Now I can finally dig into Proceswire. Seems to be a great tool, I will get back and post the results to the showcase when I'm done. Link to comment Share on other sites More sharing options...
bruno22 Posted February 19, 2013 Share Posted February 19, 2013 hello!! I have the same problem, error 404. I can't solve the problem on the .htaccess. Please help me how I can fix this. the line that contanis the rewrite base is: # RewriteBase / # RewriteBase /pw/ # RewriteBase /~user/ # is it anything wrong?? thanks for your help!! Link to comment Share on other sites More sharing options...
Joss Posted February 19, 2013 Share Posted February 19, 2013 Hi Bruno A few questions which will help people to help you: Have you installed ProcessWire in the root of your website or in a sub-directory? If a sub-directory, what is it's name? When you installed, did you specify a directory for admin, or did you leave it at the default "processwire?" What server have you installed this on? Is it on your local machine (xampp or wamp or mamp installation) or is it a shared server/vps/dedicated? If it is a shared server or other, do you know if it is an Apache server, another nix based server or is is a Windows server? Link to comment Share on other sites More sharing options...
Wanze Posted February 19, 2013 Share Posted February 19, 2013 hello!! I have the same problem, error 404. I can't solve the problem on the .htaccess. Please help me how I can fix this. the line that contanis the rewrite base is: # RewriteBase / # RewriteBase /pw/ # RewriteBase /~user/ # is it anything wrong?? thanks for your help!! You need to remove the "#" in front of ONE RewriteBase (# marks the line as comment) So you should try first: RewriteBase / If it doen't work, add your subdirectory where the Pw-files live. For example, if you have your site at http://localhost/foobar, you would add this line: RewriteBase /foobar/ Link to comment Share on other sites More sharing options...
bruno22 Posted February 19, 2013 Share Posted February 19, 2013 it doesn't work I install the processwire in filezilla on the 000webhost!! the installation works fine but when I type my website (www.namesite.net/processwire) it shows me this : http://error404.000webhost.com/? I modified the line of the rewrite base but it still doesn't work. Link to comment Share on other sites More sharing options...
Joss Posted February 19, 2013 Share Posted February 19, 2013 HI Bruno, Just to check. When you look at your directory either on cpanel or filezilla, what is the path to your processwire installation? Is it something like: /home/username/public_html/index.php or is there an additional directory: /home/username/public_html/directory-name/index.php or perhaps /home/username/public_html/processwire/index.php Joss Link to comment Share on other sites More sharing options...
bruno22 Posted February 19, 2013 Share Posted February 19, 2013 hi joss, the path is : /home/username/public_html/index.php thanks a lot for your help. Bruno Link to comment Share on other sites More sharing options...
Joss Posted February 19, 2013 Share Posted February 19, 2013 Thats a pity - I had hoped you had a stray sub directory in there. And you didn't change the name of the admin page when you installed? There is an option for it - it doesn't create an actual directory, just changed the name of the admin page. Link to comment Share on other sites More sharing options...
diogo Posted February 19, 2013 Share Posted February 19, 2013 Do the links on the website work? Link to comment Share on other sites More sharing options...
bruno22 Posted February 19, 2013 Share Posted February 19, 2013 diogo, és português certo? apenas me aparece a página do processwire. Mal carrego num link ele dá me o tal erro 404!! não consigo entender o que se está a passar!! obrigado e um abraço joss, I didn't change nothing. I didn't touch on the admin's name. thanks a lot. Link to comment Share on other sites More sharing options...
diogo Posted February 19, 2013 Share Posted February 19, 2013 Olá Bruno, sim sou Portugês Isso deve ser um problema com o mod_rewrite. Segue estas intruções http://processwire.com/talk/topic/1962-cant-reach-admin-page/?p=18373 Link to comment Share on other sites More sharing options...
ryan Posted February 20, 2013 Share Posted February 20, 2013 I would bet that this web host is not reading the .htaccess file or does not support RewriteEngine. Put a bunch of junk characters at the top of your .htaccess file, like "alkjaefkjafjkef" and save. You should get a 500 error when you try to view anything on your site. That means it's working. If you don't get a 500 error, then your web host is not reading your .htaccess file and you need to ask them to fix it. Link to comment Share on other sites More sharing options...
diogo Posted February 20, 2013 Share Posted February 20, 2013 Ryan, it's a free host, but apparently it does supports it http://www.000webhost.com/faq.php?ID=16 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now