0

Is it possible and how could I rewrite http://192.168.1.1:4950/hello to, e.g., http://home.hello

I know how to use .htaccess to rewrite just part of URL's but can't figure out how to rewrite whole address including the IP part and port.

This rewriting is for internal/LAN use only.

1

1 Answer 1

1

Use a RewriteCond with the ServerName variable and then the RewriteRule would be a redirect.

Not the answer you're looking for? Browse other questions tagged .