Jump to content

Recommended Posts

Posted

Hi,

I was wondering, how can I disable clean URLs in PW? This is only for testing purposes, of course... :P

I tried using ?it=page-id but it justs redirects to the clean URL.

Best regards,

Posted

Welcom eomine!

What testing purposes?

I think there's no way, cause PW uses paths and segments to resolve to a page.

Posted

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.

Posted (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 by teppo
  • Like 1
Posted

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.

  • Like 1
Posted

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).

Posted

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

  • 3 weeks later...
Posted

Hi, thank you all for replying!

The problem was mod_rewrite indeed, we just had to add a RewriteBase instruction to htaccess.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...