How can I manage to display only the domain name instead of the full address path when I enter my webpage?
For example, when I search 'name.com', I want the search bar shows only 'myname.com' instead of 'www.name.com/page.html'.
my index.php entrance:
<?php
header( 'Location: http://www.xxxxx.com/xxxx.html' ) ;
?>
and I have a corresponding 'xxx.html' file.
I've tried adding the following lines to .htaccess file
RewriteEngine On
RewriteCond %{HTTP_HOST} !^name\.com$ [NC]
RewriteRule .? http://name.com%{REQUEST_URI} [R=301,L]
.
it successfully hiding 'www' prefix, however, I also want to hide '/xxxx.html' part. How to do that?