Thread:Project:Support desk/MediaWiki installation and Short URLs/reply (3)

To prevent your wiki from redirecting to the IP URL instead of staying on the domain URL, update Manual:$wgServer so it points to the domain and not the IP.

After that, just follow the instructions about Manual:Short URL. Be sure to plan your URL scheme before trying to follow those instructions.

If you want your "edit" urls be on /w/index.php, you should rename your directory to  instead of. That's the directory that needs to exists. the  directory for short urls shouldn't exist, because it will be a "virtual" one, which would be rewritten internally to point to the first one with rewrite rules.