I am creating a website on localhost using XAMPP under Home windows 7. The web site URL is http://localhost/lyrics. How do i enable url spinning for your subdirectory?

I attempted using the code below however it did not work.

RewriteEngine On
RewriteBase /lyrics

Thanks ahead of time.

To begin with, thanks for visiting SO!!

Make zure mod_rewrite is enabled in httpd.conf and add à slash after lyrics:

RewriteBase /lyrics/

Wait - so you are carrying this out in development and production mode, also it only works in development ( localhost ) ?

Are you currently depending on virtualhosts or strictly .htaccess? Are you able to make sure a simple fundamental .htaccess rule like ErrorDocument works being produced mode?

Any reason you cannot simply make a VirtualHost for your directory?

<VirtualHost *:80>
ServerName foo.localhost.com  # this needs to be in your hosts file as foo.localhost.com
DocumentRoot C:/whatever/lyrics

* add your rewrite rules here *