...

View Full Version : Making 'subdomain.html' Look Like '/subdomain'



mark87
08-26-2005, 01:22 PM
Is there a way - I'm sure there is - to make it so going to for instance -

mydomain.com/background/

Is actually displaying -

mydomain.com/background.html

I don't want to put an index file in it's own folder to get the desired effect really. Is this possible with a mod_rewrite? Although I'm not quite sure how to do one lol.

oracleguy
08-26-2005, 05:48 PM
Yeah, I think you are headed in the right direction. It has been discussed before so I'd recommend searching the other server side languages/issues forum because that is where all that kind of stuff gets placed.

gsnedders
08-26-2005, 06:12 PM
.htaccess:

RewriteEngine on
RewriteRule (.*)$ $1.html [L]

I think that should work :)

mark87
08-26-2005, 06:21 PM
Thanks!

How weird though, I just uploaded some files to the server, eg.

contact.html
background.html

But I can actually already get to them by going to

domain.com/contact
domain.com/background

Perhaps the server already has that installed or something! Oh well, thanks anyway! :)



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum