Mar 182010
 

Please add following code in .htaccess file

Options +FollowSymLinks
DirectoryIndex index.php

RewriteEngine On
RewriteBase /
# Rule 1
RewriteCond %{HTTP_HOST} !^www\.MYWEBSITE\.com$ [NC]
RewriteRule ^(.*)$ http://www.MYWEBSITE.com/$1 [L,R=301]

# Rule 2
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.php\ HTTP/
RewriteRule ^index\.php$ http://www.MYWEBSITE.com/ [R=301,L]

# Rule 3
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

  14 Responses to “how i can redirect index.php to domain only”

  1. the written content on this article is really one particular of the most beneficial substance that We have at any time arrive throughout. I adore your article, I will occur back again to examine for new posts.

  2. Hi buddy, your blog’s model is simple and clean and i like it. Your blog content articles are superb. Please preserve them coming. Greets!!!

  3. It’s a shame you don’t have a donate button! I’d certainly donate to this outstanding blog! I guess for now i’ll settle for book-marking and adding your RSS feed to my Google account. I look forward to brand new updates and will share this site with my Facebook group. Talk soon!

  4. Hi would you mind letting me know which webhost you’re working with? I’ve loaded your blog in 3 different browsers and I must say this blog loads a lot quicker then most. Can you suggest a good hosting provider at a honest price? Kudos, I appreciate it!

  5. Hello There. I found your blog using msn. This is a really well written article. I’ll make sure to bookmark it and come back to read more of your useful information. Thanks for the post. I will definitely return.

  6. I know this is truly boring and you are skipping to the next comment, but I just wanted to throw you a large thanks – you cleared up some things for me!

  7. Sick and tired of obtaining low numbers of useless visitors to your website? Well i want to let you know about a new underground tactic which makes me personally $900 each day on 100% AUTOPILOT. I really could be here all day and going into detail but why dont you just check their website out? There is a great video that explains everything. So if your serious about making easy hard cash this is the site for you. http://www.autotraffic-avalanche.org

  8. Wholesale Yankee Candles…

    […]just below, are some totally unrelated sites to ours, however, they are definitely worth checking out[…]…

  9. Hi. I like your website but i can tell it probably isn’t getting much traffic? If you want to help imrpove that check this website out, he has a short video that i really suggest you watch. Commission Crusher P.S this isn’t my website and i’m not spamming your blog, i don’t care if you delete this comment. I am only trying to help you improve your site.

  10. Gold! you save my day 😉

  11. You might have read many articles on various articles. However, most of the time you came to know that content was not up to the mark. This article is actually related to the topic and features unique information relevant to the theme of the article.

  12. Was amused from the floor up. Will sticker around a bit more for a good read.

  13. When will you post again ? Been looking forward to this !

  14. Hi, i feel that i saw you visited my web site so i got here to return the favor?.I am attempting to to find issues to enhance my website!I assume its good enough to use some of your
    concepts!!

 Leave a Reply

(required)

(required)

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>