Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

We've got a fresh CentOS box and we need to enable nice urls / permalinks. We're running Apache with mod_rewrite installed but I'm aware I need edit a few config files to get the basics up and running.

What are the steps and files that need to be changed in order to get it up and running?

share|improve this question
I'm afraid you're going to need to be a lot more specific than that. What are you trying to do? Do you have a webserver already installed? What are you serving? – David Pashley Jun 3 '09 at 11:43
Sorry your right, I will clarify :) – Tom Jun 3 '09 at 11:57
up vote 2 down vote accepted

I agree with David Pashley - this is a somewhat vague question.

However I'm going to take a guess from looking at the question tags that you're using Apache as your webserver. In which case you will want to explore Mod_Rewrite and modify either your Httpd.conf or .htaccess files to manipulate url rewrites.

If you're using Lighttpd you would want to look at

There are still a lot of 'ifs' in your question you might want to elaborate on. Some web frameworks will handle this for you (Rails, Django, CakePHP, etc.)

share|improve this answer

Just incase anyone else is looking for the answer simply edit


Find the line

Change AllowOverride None to AllowOverride All

Restart, Win

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.