Skip to content
Grav 2.0 is officially stable. Read the announcement →
Archive

Rewrite .htaccess file

Started by Muut Archive 10 years ago · 5 replies · 575 views
10 years ago

is there any factors will rewrite or change the .htaccess file? I tried to set the "Redirect default route" of system and Redirects & Routes of site. but nothing happens to .htaccess file. (it seems not work on Redirects & Routes of site configuration.

10 years ago

You have to manually edit your .htaccess file. Grav doesn't (and shouldn't).

10 years ago

could i put the .htaccess file to http config? Our sysadmin wouldn't allow us "AllowOverride All"

10 years ago

All you really need is AllowOverride FileInfo,Indexes, and even then, most servers disable indexing anyway, so even if your sysadmin gave you just FileInfo, things should work. You can of course put the rewrite rules into the main config, but I doubt very much your sysadmin wants to do that.

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 1350 9 years ago
Archive · by Muut Archive, 9 years ago
2 934 9 years ago
Archive · by Muut Archive, 9 years ago
2 4060 9 years ago
Archive · by Muut Archive, 9 years ago
1 2947 9 years ago
Archive · by Muut Archive, 9 years ago
3 1118 9 years ago