Skip to content

Instantly share code, notes, and snippets.

View edcoelho's full-sized avatar
🌺

Edson Coelho edcoelho

🌺
  • Brazil
  • 01:16 (UTC -03:00)
View GitHub Profile
@dario2994
dario2994 / mod_rewrite_guide.md
Last active April 6, 2024 18:18
Enable mod_rewrite in apache
  • Apache configuration file

    • ubuntu -> /etc/apache2/apache2.conf
    • arch -> /etc/httpd/conf/httpd.conf
  • Add mod_rewrite and .htaccess support for your site At the end of the configuration files add these lines:

    #My site mod_rewrite configuration
    <Directory "/ABSOLUTE/PATH/YourSite">
      AllowOverride All