My site always redirects from www.idealnutri.com/magnesio-dimalato
to www.idealnutri.com/magnesio-dimalato/
(WITH BAR IN THE END). Because?
How do I know what's causing this redirect?
NOTE: I do not have HTACCESS on my site.
My site always redirects from www.idealnutri.com/magnesio-dimalato
to www.idealnutri.com/magnesio-dimalato/
(WITH BAR IN THE END). Because?
How do I know what's causing this redirect?
NOTE: I do not have HTACCESS on my site.
When you do not put the name of the file in the url the browser searches the folder (the last one in url magnésio-dimalato
) by a default file index.html
or index.php
or default.php
etc ... (has a predominance). Therefore the browser automatically places the bar to reference the folder and then browse for the default file.
A simple example online accessing this link http://kithomepage.com/sos
will see that the browser has placed the bar at the end and will search for the file index.html
. So typing http://kithomepage.com/sos
or typing http://kithomepage.com/sos/index.html
or typing http://kithomepage.com/sos/
leads to the same destination.
But if there is no default file inside the folder, a listing will appear with all the files in the folder.
See this example municipalities folder that does not have a default file.
About URLS
ThefirstpartofaURListheprotocol,whichinformsabrowserwhichInternetserviceshouldbeusedtotransferthedocument.AprotocolisseparatedfromtherestoftheURLbyacolon.
Examplesofmostusedprotocols:
ftp-FTPserversarefilerepositories,suchasdocuments,sounds,pictures,computerprograms,etc.
mailto-indicatese-mailtransport.
link
link
Thesecondpart,whichappearstotherightoftheprotocol,identifiestheserveronwhichthedocumentisstored.NotethatyouhavetoseparatetheWebserverprotocolwithtwoforwardslashes.
Thethirdpartdefinestheexactlocationofthedocument,thatis,identifiesthefoldersorsubdirectoriesthatthepageorfilecontains.Ifapageorfileisstoredintherootfolderofaserver,itsURLwillnothaveapath.
ThefourthpartofaURListhefilename.Ifyoudonotincludethespecificfilename,thebrowserlooksforadefaultpageandtheordertheserverusestosearchthepageisasfollows:
Windows2003-IIS6:index.htm,default.asp,index.html,default.htm,index.shtml,index.wml,default.aspx,index.asp,index.php.p>
Windows2008-IIS8.5:index.php,index.asp,default.asp,default.aspx,index.htm,index.html,default.htm,index.shtml
ExampleWindows2008-IIS7
Ifthereisa"default.asp" page inside the magnésio-dimalato
directory as well as "index.htm", the server will display "index.htm".