I'm trying to set up my remote hosted website (Apache) so that the URLs is useful to users and Search Engines alike, but here's my problem. myURL.com below is just an example.
I own
http://www.MyURL.com (and by extension,
http://myURL.com).
In the root of my site (with .htacess, robots.txt, etc) is a file called index.html. I don't want this to be what they see when they go to my website.
* If someone types in
www.MyURL.com, Apache fetches index.html. How does it know to select this one? No filename was given, only a directory name.
* What I'd like it to fetch is in a subdirectory from the root, /flatpress/. It's index.php. If I manually type
www.MyURL.com/flatpress, it knows to grab index.php.
Again, how does it know? I imagine it's an Apache config file I don't have access to.
I'd like
http://www.MyURL.com/ and
http://myURL.com/ to fetch and display the file at /flatpress/index.php while still showing the URL
http://myURL.com in the browser.
I've tried to use RewriteEngine (mod_rewrite) to accomplish this, but it fails miserably.
Help?
And now that I look at it, TFP does it exactly like I want.
Typing
http://tfproject.org/ is the same as
http://www.tfproject.org, and both redirect to
http://www.tfproject.org/tfp without showing a filename like forum.php or whatever it'd be.