![]() # Almost any Apache directive may go into a VirtualHost container. # You may use the command line option '-S' to verify your virtual host # for further details before you try to setup virtual hosts. This is indicated by the asterisks in the directives below. # use only name-based virtual hosts so the server doesn't need to worry about # machine you can setup VirtualHost containers for them. # If you want to maintain multiple domains/hostnames on your This is how the vhosts file on mamp looks like: # I have configured wp-config.php file: define('DB_NAME', 'superselma') ![]() The requested URL /superselma was not found on this server. I have restarted MAMP server and went to see the website in the browser, but all I get is the message: ![]() And have added an entry to /etc/hoststhat looks like this now: 127.0.0.1 localhost I have also created and imported the database to MAMP server. Now restart your browser and view and as long as your other MAMP settings are correct (remember to set the document root in the Apache tab to match where the downloaded files are ( /Users/benfrain/Sites/WordpressSite in this example) you should see a local version of your site with URL’s linking to localhost:8888 file instead of the live URL’s.I have cloned wordpress git repository to my htdocs directory on MAMP server locally. It should go just above this line: require_once(ABSPATH. $mypos = strpos($currenthost, 'localhost') ĭefine('WP_HOME',' define('WP_SITEURL',' } Change ‘YOURSITE’ to match the URL of your LIVE site: /** Sets up WordPress vars and included files. ![]() Then add this to the end of the same file.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |