Apache and <Virtual Host>


#1

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?

Thanks.


#2

What’s the problem you’re encountering?

-Scott


#3

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.


#4

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

-Scott


#5

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.