Computer Forums

Member Login

Remember Me? Sign Up! | Forgot Password
 
Slogan
 
Closed Thread
Old 11-27-2006, 09:47 PM   #1 (permalink)
Phx
 
Newb Techie

Join Date: Nov 2006

Posts: 27

Phx

Default Htaccess

I have a bunch of HTML files in the root directory of my webserver. Using .htaccess what would I do so that I could visit these pages using the name of the file, and not the extension.

For example:
You have blah.html, on domain.com. (So thats domain.com/blah.html)
How would I, without making it a directory, make it able to be visited with domain.com/blah? (also not using cheap redirects, I'm talking about the Rewrite Engine..
Phx is offline  
Old 11-28-2006, 08:44 AM   #2 (permalink)
office politics's Avatar
 
It's all just 1s and 0s

Join Date: Jan 2004

Location: in the lab

Posts: 4,410

office politics will become famous soon enough

Default

you're running apache?
office politics is offline  
Old 11-28-2006, 08:59 AM   #3 (permalink)
Phx
 
Newb Techie

Join Date: Nov 2006

Posts: 27

Phx

Default

Yeah.
I've tried looking through google and apache's website for some mod_rewrite tutorials, and couldn't find an example from what I was looking for. It'd probably be easier if I knew regex but, that's why I'm asking for some help.
Phx is offline  
 
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On