Search the Community
Showing results for tags 'mod_rewrite'.
Found 3 results
Hi, I´ve uploadet my files with all neccessary settings (chmod dir:755/files:644, assets files & dir 755, mod_rewrite=On, cache empty). The root-site works, but all children-sites respond with: "The server encountered an internal error or misconfiguration and was unable to complete your request.". It seems, mod_rewrite ist OFF, but I´ve checked it more than one time - it is ON! I also switched the options +FollowSymLinks / +SymLinksifOwnerMatch in .htaccess - nothing! Any ideas, please? Server PHP Version: 5.3.19. Thank you so much
Hi all, is there a difference between the mod_rewrite module of Apache and $_SERVER['REDIRECT_HTTP_MOD_REWRITE'] or $_ENV['REDIRECT_HTTP_MOD_REWRITE']? Processwire fails to detect mod_rewrite, but $_SERVER/$_ENV['REDIRECT_HTTP_MOD_REWRITE'] is "on". Does it have to do with Apache running as FastCGI? I'm totally stuck here, because every other system using rewrites works fine on the machine, only Processwire fails. From phpinfo(): $_ENV["REDIRECT_HTTP_MOD_REWRITE"] On $_SERVER["REDIRECT_HTTP_MOD_REWRITE"] On Thanks for any hint! Thomas
Hi, while exploring PW from the filesystem I've found 'Http.php' and as of my difficultys when starting with PW, I was wondering why not sending a HTTP-HEAD-Request to the admin-page-url at the end of the install process and inform the user if .htaccess isn't configured the right way. So, I was a bit wiser after opening the class-file: there was no support in it for HEAD, only GET and POST. As I've build a own http-client-class a hundred years ago, it was not much work to implement the HEAD-method as well. (added 1 Line) Maybe it should be added a http->status(url-to-adminpage)-check at end of install-routine to inform the user if it responses other than 200. (at least a link to apropriate forum-topic or provide direct information how to solve that) ---- Edit/Added: Every few days a new user run into same problem look at this post and the following two. (I really can feal the pain he has). And all the helpful people here try to explain how to solve it everytime and again and again. So, if it is not a kind of test to new users, the install-routine should solve that for them, and other as I've mentioned above, it should/could be done in the background, because everything needed is the .htaccess-file which is created by PW itself and some HTTP-Requests. If default install is 404 for admin page: compare $_SERVER['DOCUMENT_ROOT'] with install folder of PW and write appropriate Path as RewriteBase into .htaccess-file and check again. If it responses '200 OK' now, - fine. If not, - tell user that there are Problems with this and point him to Forum-FAQ. So, if it is actually a test to the new users weakness or strength with stressy situations, ok - any admin/moderator should silently delete this post and I never will ask again. ---- --- In API I have not found how we can use the WireHttp-class, (Searchphrases like HTTP and Request etc are not very useful) Can someone point me to it please?