doesn't work
see for yourself, I just uploaded your code as .htaccess in root
http://yogicameron.com/
Main Topics
Browse All TopicsHi
I have moved my wordpress into a subdirectory, it was on root before
the directory's name is articles and its under root. I have moved successfully and got my new permalinks working fine. So the old urls now are 301 redirected to contain the /articles/ within url
For example
http://yogicameron.com/ayu
is successfully redirecting permanetly to
http://yogicameron.com/art
now. So that part is 100% OK.
Now here is the tricky part. I don't want to do permanent redirection on domain name itself
Let me explain
http://yogicameron.com/
redirects to
http://yogicameron.com/art
while I dont want to have permanent direction on the domain itself. Rather I want the index.html to be accessed when http://yogicameron.com/ is accessed.
Also the last thing, I have a bunch of .html files in the root. I don't want to apply 301 redirection when such a url is accessed
http://yogicameron.com/any
These html files are in root.
I am attaching the code for .htaccess in my root. It does what I have specified above and lacks the functionality I mentioned. I am very new to regular expressions, thats why heavily counting on your help.
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.
doesn't work
see for yourself, I just uploaded your code as .htaccess in root
http://yogicameron.com/
see for yourself. I just uploaded. Only one change
http://yogicameron.com/
now points to index.html but messes up the CSS.
And the html files still not working.
Bravo guys
Not only you taught me new things. But I ended up doing it quickly. I love EE. Its always full of real experts. I miss the days I was a daily contributor but my job timings don't allow me to do so :(.
Once again, I am really grateful. Please guide me what should I do to learn these tricky things. I am a professional programmer but I have always been lazy to learn these regular expression things. So please guide me about any book, online good resource where I can start from.
So I added for javascript as I figured out from Kravimir's code for exception about css, added js as well and it did all the trick.
You're welcome.
> So I added for javascript as I figured out from Kravimir's code for exception about css, added js as well
> and it did all the trick.
I already added that. It's the second extension in the list.
> Please guide me what should I do to learn these tricky things.
It really depends on which languages you intend to use them with, because implementations of them vary from language to language.
The best general resource that I'm aware of is http://www.regular-express
Business Accounts
Answer for Membership
by: KravimirPosted on 2009-05-12 at 15:34:17ID: 24370153
Try this:
Select allOpen in new window