lightnb
08-24-2008, 08:22 PM
PHP info lists mod rewrite as being an installed module. I am building this site on my own computer, with Ubuntu 8 and apache 2.
The server's host name is "swiftfish", and the application is being developed in the "Application" folder, in "/var/www/Application".
So when I access "http://swiftfish/Application/" locally, the file "/var/www/Application/index.php" loads.
Now, I'm trying to add a virtual folder, "products" that redirects back to the index file. My .htaccess file at "http://swiftfish/Application/.htaccess" reads:
Options +FollowSymlinks
RewriteEngine on
RewriteRule ^products/$ index.php?page=products
But, when I visit "http://swiftfish/Application/products/" in my browser, I get a 404 Error.
Why isn't it redirecting?
The server's host name is "swiftfish", and the application is being developed in the "Application" folder, in "/var/www/Application".
So when I access "http://swiftfish/Application/" locally, the file "/var/www/Application/index.php" loads.
Now, I'm trying to add a virtual folder, "products" that redirects back to the index file. My .htaccess file at "http://swiftfish/Application/.htaccess" reads:
Options +FollowSymlinks
RewriteEngine on
RewriteRule ^products/$ index.php?page=products
But, when I visit "http://swiftfish/Application/products/" in my browser, I get a 404 Error.
Why isn't it redirecting?