How do I turn off clean URLs in Drupal 8 from the database? What table do I look in and what variable do I have to change?

  • 1
    Why can't you use Drush/Drupal Console? It will be more reliable – Clive Jan 8 '16 at 15:56
  • @Clive - Because I am a noob and still learning how to do all this stuff – ShemSeger Jan 8 '16 at 16:55
  • I am not 100% sure if all parts that tie into the routing system still work with clean URLs disabled. I do remember banging my head against the wall with some of this code when I was working all of the issues leading up to removing l() and url(), but I don't recall where all of it landed. – mpdonadio Jan 8 '16 at 18:01

In drupal 8 this setting has been removed:

'clean_url' configuration setting removed; clean URLs are autodetected each request

I checked the database, there is really no setting with this name.

  • Thanks for the link, when I type index.php I can at least see my pages, now I just need to figure out how to fix this on my server... – ShemSeger Jan 8 '16 at 16:55
  • Is it Apache or Nginx @ShemSeger (or something else)? – Clive Jan 8 '16 at 18:21
  • @Clive My web server is running Ubuntu 14.04 – ShemSeger Jan 8 '16 at 18:31
  • Ubuntu is your OS - a web server is a bit of software that runs on top of that. It's likely to be Apache or Nginx; more likely Apache if you're unsure. But find that out first, it's important. There's probably a small config change to make there and everything'll work – Clive Jan 8 '16 at 18:34
  • @Clive I've never used Nginx, I installed the LAMP package so I'm using Apache. I've enable rewrite, added all sorts of stuff to my default-ssl.conf, done pretty much everything I can find documentation on, but my problem started when I updated to Drupal 8.0.2 yesterday, so there isn't a whole lot of up to date documentation. – ShemSeger Jan 8 '16 at 18:38

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.