php - want to show only domain name in addressbar and hide all the pages name and querystrings -


i want show domain name in address bar. new in programming nd using core php. .htaccess code is:

        <ifmodule mod_rewrite.c>         rewritebase /         options +followsymlinks -multiviews         rewriteengine on         # make `/path/index.php` /path/         rewritecond %{the_request} ^get\s(.*/)index\.php [nc]         rewriterule . %1 [ne,r=301,l]         rewritecond %{the_request} ^get\s.+\.php [nc]         rewriterule ^(.+)\.php$ /$1 [ne,r=301,l,nc]         rewritecond %{request_uri} !\.php$ [nc]         rewritecond %{request_filename}.php -f         rewriterule . %{request_uri}.php [l]         </ifmodule> 

this working fine shows result http://mysite.com/about http://mysite.com profile_view?name=apoorva%20chauhan%20gmail%20&&%20user_type=user

i want hide complete url expect domain name. url should www.mysite.com/ no matter link clicked. , above code hide index.php completely. project deadline on wasted 1 week on topic. failed. please me. in advance.

i used javascript hide or change entire url. , it's working fine now. not satisfy it.

  <script type='text/javascript'>   if(history.replacestate) history.replacestate({}, "", "/");   </script>   

note : / path u want show.

it shows url mysite.com no matter link have clicked. have problem code while reloading page complete url query string blinks address bar.


Comments

Popular posts from this blog

iphone - Three second countdown in cocos2d -

hyperlink - how to do url routing in php -

c - Avoiding Extra Malloc in Linked List (node->next = NULL) -