Technology Blog

Redirect website to /index.php with .htaccess

3

You have a website with the name domain.com – and you want to redirect all incomming urls that are going to domain.com/ to domain.com/index.php

Solution

RewriteEngine On
RewriteBase /

RewriteCond %{REQUEST_URI} ^$
RewriteCond %{HTTP_HOST} ^domain.com$
RewriteRule ^$ http://domain.com/index.php [L,R=301]

  • I was very happy to uncover this web site. I want to to thank you for ones time just for this wonderful
    read!! I definitely really liked every part of it and i also have you book
    marked to see new things in your blog.

  • You are so cool! I don’t think I’ve read
    through a single thing like that before. So great to discover someone with a
    few original thoughts on this subject. Seriously.. thanks for
    starting this up. This site is something that’s needed on the
    internet, someone with a little originality!

  • Blow Your Competition Through The Water With These Seo Tricks

    A website you construct might look really flashy and pack in a lot
    of features, however ask yourself a truthful question here: Exactly what good are all those bells and whistles doing if nobody’s even visiting your site?
    This is the problem you’re going to have unless you address
    the problem of SEO, so bone up on your skills.

    Enhance your site traffic and the earnings from your website
    by guaranteeing it has no busted links or pages. Broken links avoid consumers from browsing your site.

    Broken pages are worse, ever since the content is just missing out on. Damaged content
    can’t be indexed by online search engine either, which is also poor marketing.

    Even saved images and video files on your server can present an opportunity to enhance in the rankings,
    so be sure that you’re always saving files with keywords.
    For example: If you have an image on your site
    handling weight-loss, like a before-and-after photo,
    make sure you consist of an appropriate keyword in the title
    when you conserve the image.
    Prevent utilizing keywords that are of no relevance to your website
    or item. Web crawler bots may mistake your site as spam
    and blacklist your site from the search results
    when you do. On the other hand, make sure to consist
    of all pertinent keywords on your web page as this is the page you
    ought to desire your consumers to see first.

    Be specific about your phrases and keywords and keep it simple.

    If you attempt to catch every keyword in your specific
    niche, you will certainly have spread yourself too thin. Target a choose couple of
    and use them artistically and typically while still preserving a natural flow
    to your page. By doing this you can press to the top of the
    list much easier.

    Effective SEO strategies will not require
    a high level of skill and even an entire lot of effort.
    What’s vital is that you take the ideal method. As you learn about SEO, you will certainly discover that a couple of small tweaks can equate to huge
    outcomes. Get begun on your optimization by using what you have actually learned here.

    For more reference: visit us at SEOBloggerninja