301 redirection to index.php

5 replies
  • SEO
  • |
Hi Friends,

I am searching for the https://www.example.com/index.php version of my website but it shows 404 error.

My question here is whether i need to redirect the above url to root domain or not???

I think the php file is not created.
#301 #indexphp #redirection
  • Profile picture of the author Trixiepaloma
    Banned
    [DELETED]
    {{ DiscussionBoard.errors[10965135].message }}
  • Profile picture of the author MikeFriedman
    Does your site even have an index.php page in the first place?

    404 error is the error you get when you are trying to reach a URL that does not exist.
    Signature
    SEO, AdWords Management, Social Media Marketing, and more.
    Get a FREE Quote.
    {{ DiscussionBoard.errors[10965150].message }}
  • Profile picture of the author paulgl
    Virtually all servers are set up to look for index.php. index.html, index.asp, index.htm, etc.

    It's a server setting.

    If visitor is forwarded to normally index.php if it exists.
    If it does not exist, then it goes to index.html, and on down the line.

    You would not get a 404 error unless the index.php did not exist.

    That's YOUR problem. Create one.

    There is normally no reason to ever 301 to an index.php, as that is the default setting on virtually all servers for regular Joes.

    If you have both an index.html and an index.php, then the preferred one set up by the server will load.

    This is not a 301.

    Many websites do not want either index.php or index.html as their index page.

    So they 301 to whatever page they want to load when typing in domain.com

    You don't even know any of this, and you ask about forwarding to the root domain.

    Questions like these are caused because people don't learn how websites, servers, and the internet work.

    It's a magical world, people. Just start learning before you call yourself a webmaster of some domain.

    Paul
    Signature

    If you were disappointed in your results today, lower your standards tomorrow.

    {{ DiscussionBoard.errors[10965472].message }}
  • Profile picture of the author Maple Labs
    Hey just update your .htaccess file for redirection index.php to root domain
    {{ DiscussionBoard.errors[10965744].message }}
  • Profile picture of the author michaelkoehler92
    There's no need to do anything, That page is not a thing that will rank anywhere and no visitor will land to it.
    {{ DiscussionBoard.errors[10966225].message }}

Trending Topics