CodeIgniter Forums
How to fully hide url, only shows www.website.com - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24)
+--- Thread: How to fully hide url, only shows www.website.com (/showthread.php?tid=71721)



How to fully hide url, only shows www.website.com - kelapamuda - 09-16-2018

Hi everyone.
Is it possible to do this : hide full url completely, for example if my website name is www.website.com, whenever page visitor goes in our website, the browser only show www.website.com. Is it possible to do? Thanks everyone.


RE: How to fully hide url, only shows www.website.com - ciadmin - 09-16-2018

https://www.codeigniter.com/user_guide/general/urls.html#removing-the-index-php-file


RE: How to fully hide url, only shows www.website.com - hicham - 09-17-2018

(09-16-2018, 08:02 AM)kelapamuda Wrote: Hi everyone.
Is it possible to do this : hide full url completely, for example if my website name is www.website.com, whenever page visitor goes in our website, the browser only show www.website.com. Is it possible to do? Thanks everyone.

i'll give you another idea if this not working with you using CodeIgniter URLs.

just make iframe full page so this will not change your website name [just example ]

1- first put your website files inside folder after the root , like root/MYWEBSITE
2- create index.php file inside root , root/index.php
3- put this code inside index.php page


Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <title>Test Layout</title>
        <style type="text/css">
            body, html
            {
                margin: 0; padding: 0; height: 100%; overflow: hidden;
            }

            #content
            {
                position:absolute; left: 0; right: 0; bottom: 0; top: 0px;
            }
        </style>
    </head>
    <body>
        <div id="content">
            <iframe width="100%" height="100%" frameborder="0" src="http://www.yourwebsiteurl.com/MYWEBSITE " />
        </div>
    </body>
</html>