Bitcoin Forum
May 24, 2024, 03:14:35 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: I want to know the reason of this issue ???  (Read 124 times)
akamit (OP)
Hero Member
*****
Offline Offline

Activity: 1484
Merit: 595


View Profile
October 28, 2019, 07:32:56 PM
 #1

Recently I launched a corporate site for my company and I noticed something which I cannot fix.

I uploaded the site files to the root folder (public_html) in my cpanel perfectly I guess but today I noticed that my index.php page can be accessed with two different URLs.

Such as,
https://www.mysite.com/
https://www.mysite.com/index.php

and this is an issue of canonical url if I'm not wrong and I can see a report in google search console (Duplicate, submitted URL not selected as canonical).

I'm not sure if I've explained the issue very well. If I did then please let me know how I can remove the second URL. Google is not indexing the second URL but I still want to remove it.
examplens
Legendary
*
Online Online

Activity: 3290
Merit: 3216


Crypto Swap Exchange


View Profile WWW
October 28, 2019, 11:22:12 PM
 #2

Recently I launched a corporate site for my company and I noticed something which I cannot fix.

I uploaded the site files to the root folder (public_html) in my cpanel perfectly I guess but today I noticed that my index.php page can be accessed with two different URLs.

Such as,
https://www.mysite.com/
https://www.mysite.com/index.php

and this is an issue of canonical url if I'm not wrong and I can see a report in google search console (Duplicate, submitted URL not selected as canonical).

I'm not sure if I've explained the issue very well. If I did then please let me know how I can remove the second URL. Google is not indexing the second URL but I still want to remove it.

I am not sure where is the problem. Whatever you put in "public_html", index.php or index.html will be default page.
Usually, things like this can be solved using a .htaccess file and redirect all to www.domain.com.

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
Vod
Legendary
*
Offline Offline

Activity: 3710
Merit: 3084


Licking my boob since 1970


View Profile WWW
October 29, 2019, 12:03:21 AM
 #3

I noticed that my index.php page can be accessed with two different URLs.

Such as,
https://www.mysite.com/
https://www.mysite.com/index.php

The index.php file is the default file for any directory. 
https://bitcointalk.org/index.php
https://bitcointalk.org

You can always change the name to something else, but Google should not index it.

https://nastyscam.com - landing page up     https://vod.fan - advanced image hosting - coming soonish!
OGNasty has early onset dementia; keep this in mind when discussing his past actions.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!