Redirecting Apache2 to Wordpress site by default
Running Ubuntu 8.04 (Desktop) with Apache2 installed from repositories. It was all set up using this HOWTO, except I replaced the name of the blog directory, making it mydomain rather than wordpress. As a consequence, I have to go to http://www.mydomain.com/mydomain in order to view the blog. What I want is to just be able to type in www.mydomain.com and view the blog, without the subdirectory. I've set up a NameVirtualHost with the following configuration:
Code:
NameVirtualHost * I've tried simply placing the wordpress files and directory structure in www, but that jut makes all the php paths fail and everything on the page is broken. Surely I'm missing something simple here. I've tried creating a link named index.php targeted to the actual wordpress index file, which sort of works; I can type www.mydomain.com into the address box, though apache still redirects to http://www.domain.com/domain which looks kind of silly. There must be some way to accomplish this. |
Add
Code:
ServerName www.mydomain.com |
All times are GMT -5. The time now is 09:49 PM. |