Apache and <Virtual Host>


Heya folks,

I think there might be something wrong with the Apache install running on my server. Is there any way I can view the configuration information?



What’s the problem you’re encountering?



Using .htaccess and mod_rewrite, suppose I want to call “page.php”. If I redirect to /page.php, it looks for the file in the document root. Understandable, and natural.

But if I ask for page.php (sans “/”), the url should redirect to page.php in the current folder. Instead, it redirects to a big long string including the domain name and /home/myusername/otherstuff.


Just taking a shot in the dark, will ./page.php work?



Actually, I think I’m wrong. This works as is intended:

RewriteRule (.*)$ page.php [QSA,L]

I believe the first half of my RewriteRule was written wrong in my first tests.

Thanks for giving it a look.