enable mod rewrite in webmin

Just trying to confirm that the to enable mod rewrite you would have to change the httpd.conf file.

That Inside the httpd.conf file I would uncomment the line LoadModule rewrite_module modules/mod_rewrite.so and also uncommented the ClearModuleList and then find and make sure that the line AddModule mod_rewrite.c is not commented out.

We really just want to make this happen for one website. Does this sound like the right way to do it? Is the easy way to edit that file to use Webmin (file manager or Apache file editing) or do others prefer a command like SSH nano or vi type of fix. ?? Suggestions welcome.

Howdy,

Well, how to enable modules in Apache differs depending on what distro you’re using… but what you described should work well on CentOS.

I personally use vi from the command line, but there’s a number of other ways which work just as well. One of the easiest would be to go into Webmin -> Servers -> Apache -> Global configuration -> Edit Config Files, and to perform the edits from there.

-Eric

@andreychek
Can you possibly post the best settings one would add to the config file for say…

Gziping the CSS/JS, image and flash files
Removing Etags from CSS/JS and Image/flash files.
Adding expires header to CSS/JS and image/flash files.

or any other settings that would fully optimize the server for Wordpress sites

Many thanks

Sorry, I don’t have any recommendations in that regard :slight_smile:

If other folks have done some work in that area, perhaps they’ll chime in… otherwise, you may want to pop a note into the WordPress forums, it’s possible they might have some suggestions regarding all that.

-Eric