Forum Moderators: phranque

Message Too Old, No Replies

Specific URL/page shown in browser as default index.html

         

flexy123

3:58 pm on Aug 26, 2007 (gmt 0)

10+ Year Member



i know how to use directoryindex.

But what i need is:

if i go to www.example.com i have a default index.html which is called
"the_beauty_of_url_rewriting.html" or similiar.

In my .htaccess i have that in directoryindex and its loaded once i go to the domain.

BUT...i want the URL to be displayed in the browser. right now the page is loaded but its threated as it would be index.html

When i go to www.example.com it should go to and KEEP the name of the URL

www.examples.com/the_beauty_of_url_rewriting.html

And also show this in the browser.

I want to take advantage of SEO here and keep the URL since it is descriptive.

Thanks!

g1smd

4:11 pm on Aug 26, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



>> right now the page is loaded but its threated as it would be index.html <<

That is because that is exactly what "DirectoryIndex" does. It is working exactly as it should.

It specifies which file to show the contents of, if you specify just the domain name in the URL.

.

The most important page of a site is the root index page.

You should never address that page using a filename.

The URL of the root of a site is www.example.com/ and nothing more.

That's it.

By wishing to use a name, you are creating a difficulty, and potentially exposing your site to Duplicate Content problems.