1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Search Engine Algorithms

Discussion in 'All Other Search Engines' started by PHP4independence, Oct 20, 2019.

  1. #1
    Hello.

    I have a question, does anyone know a way of hiding php files and documents from search engine algorithms especialy Google algorithms. I have websites that are not being fully indexed because search engines using there algorithms are detecting the same PHP files in each of my websites. You might suggest changing these php files but the files I use are important to allow my websites to function. If anyone can suggest any ideas it would greatly help, Thank you in advance if you can help :)
    SEMrush
     
    PHP4independence, Oct 20, 2019 IP
    SEMrush
  2. sarahk

    sarahk iTamer Staff

    Messages:
    26,125
    Likes Received:
    3,821
    Best Answers:
    108
    Trophy Points:
    665
    #2
    first up, Google is finding web pages generated by php - and not the php files themselves. Are the web pages identical? Is there any way you can differentiate the information on them?

    There are a couple of ways to prevent indexing - use robots.txt or the meta tag with noindex

    https://support.google.com/webmasters/answer/93710?hl=en
     
    sarahk, Oct 20, 2019 IP
  3. JEET

    JEET Notable Member

    Messages:
    3,298
    Likes Received:
    351
    Best Answers:
    15
    Trophy Points:
    235
    #3
    There is no way search engine can detect a PHP file name, as long as you have an index file in the folder.
    PHP file get processed and only output is shown in browser.

    If your URLs are like this:
    domain/user.php
    domain/customer.php
    then use Mod Rewrite to change URLs in your websites.
    Also use this line below on top of .htaccess file to hide default index page showed by apache.

    Options -Indexes +FollowSymLinks
     
    JEET, Oct 25, 2019 IP
  4. dzikipaw

    dzikipaw Well-Known Member

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    106
    #4
    One option is to use .htaccess to mask any extension on your server.
     
    dzikipaw, Nov 2, 2019 IP
  5. JEET

    JEET Notable Member

    Messages:
    3,298
    Likes Received:
    351
    Best Answers:
    15
    Trophy Points:
    235
    #5
    By the way, its not the filenames that are responsible for less indexing.
    If this would have been true, then google would have indexed only one wordpress blog...

    Get some backlinks.
     
    JEET, Dec 29, 2019 IP
  6. mmerlinn

    mmerlinn Notable Member

    Messages:
    2,533
    Likes Received:
    474
    Best Answers:
    6
    Trophy Points:
    290
    #6
    Google does not index php files at all. As long as your php files end with the .php extension Google will never index them. All you need to do is to make sure that all of your php files have a .php extension. If any of them don't, then change the extension of those files to .php.
     
    mmerlinn, Dec 29, 2019 IP
  7. JEET

    JEET Notable Member

    Messages:
    3,298
    Likes Received:
    351
    Best Answers:
    15
    Trophy Points:
    235
    #7
    Google is not indexing the code of the PHP file. Its indexing the output of the files.

    He is worried that because he is using same script on different domains, so google is ignoring his websites.
    This is certainly not the case... Its just something he is thinking.
     
    JEET, Dec 29, 2019 IP