HTML。 在浏览器地址栏显示IP地址,而不是实际的网站地址

I'm working on a project where at a place I want to change my normal website address to ip address ie address http:/www.mydomain.com/index.php will change into http:/192.xx.xxx.25/. This will be only for one specific page not for whole site. Can anyone help me how i will be able to do this. Thanks....

If you are using Apache you can do it using htaccess.

Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^example.com[nc]
RewriteRule ^(.*)$ http://www.example.com/$1 [r=301,nc]

//301 Redirect Old File
Redirect 301 /specific_page_slug http://192.168.0.1

For Nginx you can add following in your Nginx configuration file

location Old {
  rewrite ^(.*)$ File redirect;
}

location /specific_page_slug {
  rewrite ^(.*)$ http://192.168.0.1 redirect;
}

location / {
  if ($http_host ~ "^example.com"){
    rewrite ^(.*)$ http://www.example.com/$1 redirect;
  }
}