Setup root directory on MAMP
-
Hi guys,
I use MAMP and WordPress quite a bit but I’m wondering how I would set up my config so I can use the root directory when referring to files. Im not sure if thats worded correctly but here’s an example. When using a live or dev server I do not have to add the full url when referring to files, rather I can simply refer to the wp-content directory (for example when referring to an image from the media library, “/wp-content/uploads/2013/03/img_homefinder.jpg” instead of having to refer to the full url “https://myprojectsdomain.com/wp-content/uploads/2013/03/img_homefinder.jpg”). Unfortunately this does not apply when running locally on MAMP as it turns up a missing image icon.
Is there something that I can add to my config file or anywhere that will fix this so it adds the root directory and/or calls the correct image/file directory? Hope this makes sense, appreciate all and any help!
- The topic ‘Setup root directory on MAMP’ is closed to new replies.