You can do this if your server has mod_rewrite.
You can read more about this at:
http://corz.org/serv/trick
Main Topics
Browse All TopicsI wish to rewrite a file (located in a subdomain as http://roth-ira.bestirares
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
You can do this if your server has mod_rewrite.
You can read more about this at:
http://corz.org/serv/trick
Hi digital0iced0:,
That code didn't work since it's a sub domain. Do you have other suggestions? Much thanks.
----
Hi YourReference:
I perused the site but couldn't find anything specifically addressing subdomains. Why can't I simply do this?
RewriteRule ^http://sub.domain.com/fil
I tried this:
RewriteRule ^roth-ira/ira-independent-
But it ends up here:
http://roth-ira.bestirares
I have links as http://roth-ira.bestirares
However, it still goes to:
http://roth-ira.bestirares
I'm trying to rewrite as:
http://roth-ira.bestirares
Any help is appreciated.
Hi vkimura2007,
digital0iced0's code should of worked regardless of it's being a sub domain as long as you have the .htaccess at the right place and mod_rewrite is on. In this case .htaccess has to be on the root folder of your sub domain (http://roth-ira.bestirare
try
RewriteRule ^roth-ira/ira-independent-
if .htaccess is on the roth-ira sub folder, simple loose the sub folder name on the pattern like:
RewriteRule ^ira-independent-retiremen
to make it work for all .html file
RewriteRule ^(.*).html$ /$1.php
Business Accounts
Answer for Membership
by: digital0iced0Posted on 2009-01-12 at 21:05:22ID: 23360130
Try this:
taccess/mo d_rewrite- tips-and- t ricks.html #internal- redirect-p hp-files-t o-html
RewriteRule ^(.*)\.html$ $1.php [R=301,L]
Check this page for more info:
http://www.askapache.com/h