tpman
03-19-2011, 09:54 AM
Hello,
I wanted to get some advice on how I should go about structuring the domain URLs for the websites I am developing for a client.
- Background -
Currently, my client has a website on another host provider with the primary domain name trueprecision.net and a second domain name stealthhubs.com that redirects to the primary domain. The website is a machine shop and a bicycle component business. For the future, the client would like to break this site up into two distinct sites, one for the machine shop and one for selling bicyle components (ecommerce).
I created two new domains trueprecisonmachining.com (machine shop site) and trueprecisioncomponents.com (bicyle components ecommerce site). The trueprecisioncomponents.com temporarily is the primary/account domain. For go-live, we are going to make the old domain, trueprecision.net the primary/account domain and move trueprecisioncomponents.com to a sub-domain. So when people go to the old known domain, they will have the option to go to the machine shop or bicycle component site sub-domains.
- Issue -
My issue is I am using Wordpress for the sub-domain site trueprecisioncomponents.com which uses absolute urls. Being that the URL is not assigned to the sub-domain yet, if I use that domain to build the Wordpress site its current url path is http://www.trueprecisioncomponents.com/
(wordpress root directory) for the site root. Once I move the domain over as a sub-domain, the Wordpress directory name will not be included for the site root. Which means all my urls pointing to assets within the site will be incorrect. I normal web development I would be using relative path urls. But Wordpress does not fair well with relative paths.
Any suggestions how I should handle urls paths during development in Wordpress? There are many ways to get around the issue, but I am looking for the least intrusive way. I am aware there is a Wordpress plugin that will run through your DB and do a find and replace for specific url paths. I would like to avoid this if it is possible.
Any suggestions would be much appreciated, Thank you,
Keith
I wanted to get some advice on how I should go about structuring the domain URLs for the websites I am developing for a client.
- Background -
Currently, my client has a website on another host provider with the primary domain name trueprecision.net and a second domain name stealthhubs.com that redirects to the primary domain. The website is a machine shop and a bicycle component business. For the future, the client would like to break this site up into two distinct sites, one for the machine shop and one for selling bicyle components (ecommerce).
I created two new domains trueprecisonmachining.com (machine shop site) and trueprecisioncomponents.com (bicyle components ecommerce site). The trueprecisioncomponents.com temporarily is the primary/account domain. For go-live, we are going to make the old domain, trueprecision.net the primary/account domain and move trueprecisioncomponents.com to a sub-domain. So when people go to the old known domain, they will have the option to go to the machine shop or bicycle component site sub-domains.
- Issue -
My issue is I am using Wordpress for the sub-domain site trueprecisioncomponents.com which uses absolute urls. Being that the URL is not assigned to the sub-domain yet, if I use that domain to build the Wordpress site its current url path is http://www.trueprecisioncomponents.com/
(wordpress root directory) for the site root. Once I move the domain over as a sub-domain, the Wordpress directory name will not be included for the site root. Which means all my urls pointing to assets within the site will be incorrect. I normal web development I would be using relative path urls. But Wordpress does not fair well with relative paths.
Any suggestions how I should handle urls paths during development in Wordpress? There are many ways to get around the issue, but I am looking for the least intrusive way. I am aware there is a Wordpress plugin that will run through your DB and do a find and replace for specific url paths. I would like to avoid this if it is possible.
Any suggestions would be much appreciated, Thank you,
Keith