modifying htaccess for localhost with a custom port

To be honest, I’d change my .conf file to state the correct port if you’ve got access to that.

For instance.

<VirtualHost *:8012>
    ServerAdmin webmaster@localhost

    DocumentRoot /var/www/LOCATION OF FILES
    <Directory />
            Options FollowSymLinks
            AllowOverride None
    </Directory>
    <Directory /var/www/LOCATION OF FILES>
            Options Indexes FollowSymLinks MultiViews
            AllowOverride None
            Order allow,deny
            allow from all
    </Directory>

Then i’d restart apache. (if you are using apache that is)