I would not run the install in the root. If there is another index page you would not be able to get the functionality you want to work well for development.
I would work on my install from a subdirectory, then make it live using the instructions below:
https://codex.wordpress.org/Giving_WordPress_Its_Own_Directory
If this is what you want to do I could get more specific on how I do it.
When I go live the user only sees the main domain, they do not see the subfolder.
Great, thanks Kim. I already have WP in /CMS/ so that is good. Just a content move after development will be needed.
Will any page I create be served from the database and appear as: http://www.domain.com/Development/whateverpage.html ?
If the settings are:
WordPress Address URL: http://www.domain.com/CMS/
Site Address URL: http://www.domain.com/Development/
No, pages, if you do what the instructions say, will not show the “subdomain”
but images will have the direct link.
sample…
My website lives at http://mysite.com/newsite
The users only see http://mysite.com/ but images are linked at http://mysite.com/newsite/wp-content/uploads/etc-stuff.jpg
Will any page I create be served from the database and appear as: http://www.domain.com/Development/whateverpage.html ?
If the settings are:
WordPress Address URL: http://www.domain.com/CMS/
Site Address URL: http://www.domain.com/Development/
Yes, the page URL will be http://www.domain.com/Development/page-slug/
The “Site Address (URL)” setting is the address you want people to type in their browser to reach your WordPress blog.
https://codex.wordpress.org/Changing_The_Site_URL
You can set the site address to your domain root and run the old non-WP site in parallel, as long as there is not other index file (index.php/htm/html/etc) except WordPress’ index.php
However, it is not recommended because it would be messy (old mix new).
IF you are developing a new WordPress site to replace the existing website, I would suggest you to install WordPress development site into a subdomain.domain.com
I configured WP as:
WordPress Address URL: http://www.domain.com/CMS/
Site Address URL: http://www.domain.com/site/
The status page for Avada theme shows:
WordPress Environment
Home URL: [?] http://www.antiquebilliardtables.com/site
Site URL: [?] http://www.antiquebilliardtables.com/CMS
If I go to /CMS, I get:
Avada: Error 404 Page
If I go to /site, I get:
Forbidden
You don’t have permission to access /site/ on this server.
Seems kind of backwards, no?
the /site folder permissions are 755.
Any input?
-
This reply was modified 8 years, 3 months ago by
krishammer.
Do you have a .htaccess file in /site folder?
Please refer to https://codex.wordpress.org/Giving_WordPress_Its_Own_Directory
The folder was empty. I copied the .htaccess and index.php. I then edited the .htaccess by adding the /CMS, and copied/pasted from Permalinks per the procedure. Now it is looking for BOTH folders in the path:
Warning: require(/home/89/26/2912689/web/site/CMS/wp-blog-header.php): failed to open stream: No such file or directory in /home/89/26/2912689/web/site/index.php on line 17
Fatal error: require(): Failed opening required ‘/home/89/26/2912689/web/site/CMS/wp-blog-header.php’ (include_path=’.:/usr/share/php:/usr/share/pear’) in /home/89/26/2912689/web/site/index.php on line 17
Another question: If WP basically puts nothing in the Site Address URL folder, is there any reason why I should not simply make it the same as the location of WP itself (/CMS)?
Please paste your .htaccess file in /site here
Of course you can set WordPress Home and Site to the same path. Please decide what you want to do first.
I am presently running in the same path and had deleted the /site folder. If it puts nothing there, I guess there may be no value in the /site folder.
This is what is in the /CMS folder (the basis for the one that was in the /site folder):
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /CMS/
RewriteRule ^index\.php$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /CMS/index.php [L]
</IfModule>
# END WordPress
I appreciate your help.