Changing ?q= to regular 'Pretty' URL

Hi! I’ve been using my Drupal site for about a year, using the “clean URL” feature to turn the default URLs with “?q=” to the usual format, so that example.com/?q=pages looks like example.com/pages. For some reason, this broke. We don’t know why but we looked at a lot of different options.

What we’d like to try now is just rewriting our own links in the HTACCESS file. We want it so that all links where {url}/?q={path} just displays as {url}/{path}.

I tried this but it didn’t work:

RewriteEngine On
RewriteRule ^([^/]*)/([^/]*)$ /?q=$1 [L]

Then I tried this, but also didn’t work:

Options +FollowSymLinks
RewriteEngine On
RewriteRule ^q/([0-9]*)/([a-z]*)$ ./?q=$1

I’m new to HTACCESS so I’m not quite sure what I’m doing. I’d appreciate any advice you could give. Or if there’s a better way, I’m open to ideas.

I’ve been Googling this like crazy for the past couple days looking for an answer, but it’s tough since I don’t quite know what it’s called.

Thanks!

Drupal version: 


Source: https://www.drupal.org/taxonomy/term/22/feed