title: Wordpress Installation on Web Server with different port not working
body: <p>I activated the Apache server and installed MySQL on a Mac OS X Lion server at my place of work yesterday. I am running it on an alternate port, port 81. If I, for instance, point the browser to </p>
  
  <pre><code>http://192.168.0.1:81/phpMyAdmin/
  </code></pre>
  
  <p>phpMyAdmin opens up and I can make adjustments to my database.</p>
  
  <p>If I however import a Wordpress database and install Wordpress in </p>
  
  <pre><code>http://192.168.0.1:81/myNewSite
  </code></pre>
  
  <p>then I get a 404 Not Found and the address bar shows</p>
  
  <pre><code>http://192.168.0.1/myNewSite/
  </code></pre>
  
  <p>This is with the standard Wordpress .htaccess file in the root of /myNewSite. </p>
  
  <p>Wordpress seems to be making a database connection too, seeing as I had my socket wrong in the beginning and got the message "Error Establishing a Database Connection." When I corrected the socket it started redirecting me as mentioned above.</p>
  
  <p>In my Wordpress Databse the siteurl row/field is set to</p>
  
  <pre><code>http://192.168.0.1:81/myNewSite/
  </code></pre>
  
  <p>Could someone let me know if I should add a Rewrite Rule to my htaccess file or is there some other setting I should be looking at.</p>
  
  <p>I am not fluent with .htaccess syntax, so if the problem is there I would very much appreciate if there could be a clear indication of where any new code should be inserted and if any other lines of code should be adjusted.</p>
  
  <p>Thank you</p>