eomine Posted October 18, 2012 Share Posted October 18, 2012 Hi, I was wondering, how can I disable clean URLs in PW? This is only for testing purposes, of course... I tried using ?it=page-id but it justs redirects to the clean URL. Best regards, Link to comment Share on other sites More sharing options...
Soma Posted October 18, 2012 Share Posted October 18, 2012 Welcom eomine! What testing purposes? I think there's no way, cause PW uses paths and segments to resolve to a page. Link to comment Share on other sites More sharing options...
eomine Posted October 18, 2012 Author Share Posted October 18, 2012 My clients runs his own server, and now that he installed the PW site, only the homepage works. None of the internal pages work (404 Not Found), so I was wondering if it was possible to disable clean URLs, to make sure it is a mod_rewrite/htaccess problem. Link to comment Share on other sites More sharing options...
teppo Posted October 18, 2012 Share Posted October 18, 2012 (edited) Have you tried using URL instead of ID: http://processwire.c...t=/api/concept/ and so on? Although, judging from the symptoms, I'd be rather surprised if the problem wasn't mod_rewrite-related Edit: I'd recommend doing a Google search (I'm not a big fan of our dear forums built-in search thingy..) with something like "site:processwire.com/talk/ mod_rewrite". You'll find quite a few tips & tricks for troubleshooting + fixing mod_rewrite-problems that way. Edited October 18, 2012 by teppo 1 Link to comment Share on other sites More sharing options...
netcarver Posted October 18, 2012 Share Posted October 18, 2012 Although, judging from the symptoms, I'd be rather surprised if the problem wasn't mod_rewrite-related Hi eomine and welcome to the PW forums. I think teppo is right and, fortunately, as your client runs his own server this should be easy to diagnose and rectify. Ryan recently posted a reply to a similar situation that might help you. 1 Link to comment Share on other sites More sharing options...
netcarver Posted October 18, 2012 Share Posted October 18, 2012 Just a thought; if your client is using a debian based linux installation with Apache2 then you can make sure that mod_rewrite is installed pretty easily by doing... a2enmod rewrite from a terminal as root (or use sudo if you're using something like Ubuntu). Link to comment Share on other sites More sharing options...
diogo Posted October 18, 2012 Share Posted October 18, 2012 If it's ubuntu, mod_rewrite should be enabled by default. The most common problem is not having "AllowOverride" enabled in the etc/apache2/sites-available files change from AllowOverride None to AllowOverride All Link to comment Share on other sites More sharing options...
eomine Posted November 6, 2012 Author Share Posted November 6, 2012 Hi, thank you all for replying! The problem was mod_rewrite indeed, we just had to add a RewriteBase instruction to htaccess. 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