-
Notifications
You must be signed in to change notification settings - Fork 44
How to activate the rewrite module
FiveTech Software edited this page Apr 10, 2020
·
4 revisions
Basically you need to do this if you don't want the .prg extension to be seen and also to route all requests through an index.prg file
-
Edit httpd.conf
-
Uncomment this line: (remove the # at the beginning)
LoadModule rewrite_module ...
- In <directory (pages location) change AllowOverride from None to All
AllowOverride All
- Restart Apache
Finally in the folder where your app is, create a .htaccess file with this content:
Options -Indexes
RewriteEngine On
RewriteRule ^([a-zA-Z]+)$ index.prg/?$1 [NC,QSA]