I have followed Giving WordPress it's own directory for directions on how to accomplish this on www.mysite (once it goes live) but I'm looking for localhost directions to serve my site to localhost directly with WordPress in a SubFolder (I don't think you change .htaccess for localhost).
My WordPress installation is at /sitefolder/arc/...
How can I browse to localhost and see my site as opposed to the way it is now, having to navigate to localhost/sitefolder/arc?
I am guessing its something in the DocumentRoot?
I am using WAMP.
Thanks!
I have followed Giving WordPress it's own directory for directions on how to accomplish this on www.mysite (once it goes live) but I'm looking for localhost directions to serve my site to localhost directly with WordPress in a SubFolder (I don't think you change .htaccess for localhost).
My WordPress installation is at /sitefolder/arc/...
How can I browse to localhost and see my site as opposed to the way it is now, having to navigate to localhost/sitefolder/arc?
I am guessing its something in the DocumentRoot?
I am using WAMP.
Thanks!
Share Improve this question edited Jun 15, 2019 at 0:54 West asked Jun 15, 2019 at 0:14 WestWest 211 silver badge6 bronze badges1 Answer
Reset to default 1You have two alternatives:
Change the DocumentRoot directive in the WAMP httpd.conf file (use CTRL+F to find it). That way you will change the whole root folder of your server, be aware of that!
Create a virtual host that will bind a domain to a particular subfolder in your document root (similar to subdomains logic). Here some article that might help:
https://www.techrepublic/blog/smb-technologist/create-virtual-hosts-in-a-wamp-server/
I personally prefer the second option, is better than modify the entire document root. With a virtual host you choose if you want to use the root or a subdirectory.
Be happy!
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745394041a4625796.html
评论列表(0条)