Forum Moderators: phranque
[domain.com...] or
[domain.com...] to
[domain.com...]
I don't need help with "search engine friendly urls", as I already have a good system in place. As of now, I have a good slash-forward system and any requests for [domain.com...] get rewritten to [domain.com...]
Try these urls:
[alistapart.com...]
[alistapart.com...]
That's what I mean. I know it'd be something like:
RewriteRule ^index\.html$ / [L]
But all I get is server errors. It's weird, I can figure out really complex slash-forward things, but for this one simple rewrite for only the index page I can't seem to figure it out!
-andrew
Member zorvek posted what may be the solution to your problem just last week: [webmasterworld.com...]
Jim
What server errors do you get? Are you getting 500-Server Error messages, or just the old "infinite-loop" problem?
Also, don't you want an external redirect on that? Or what's the purpose if not?
Whenever I've done this, I had to make sure that the index file - the one listed in my DirectoryIndex directive *was not* named the same as the URL I was trying to redirect. So I would rename "index.html" to "index.htm" (or anything else) put that filename into DirectoryIndex, and *then* I could externally redirect "index.html" to "/" with no problems. My purpose was to get my old and ugly www.example.com/index.html URLs removed from the search engines, so I used a 301 redirect.
Jim