Viewing 15 replies - 1 through 15 (of 15 total)
  • it used to be changing it in the database forced it, but last time something similar happened to me i had to add a similar line:
    define('WP_HOME','https://www.site.com');

    to my wp-config file, at the bottom. set that to what you want. if it doesn’t work, you’ll need to change it in the db as well.

    Thread Starter Cyberbronco

    (@cyberbronco)

    Thanks Digibucc & Samual. When it says move the “Core” files in the guide, can you tell me what those are? Is 644 what the permissions should be set to so the htaccess files can be writable? Floridaportraits.com is a sub-domain and not my root. Would that make a difference?

    Thread Starter Cyberbronco

    (@cyberbronco)

    I still cant make this work. This is the error I am getting:
    Warning: require(./public_html/oguin/wp-blog-header.php) [function.require]: failed to open stream: No such file or directory in /home7/ameridr9/public_html/floridaportraits/index.php on line 17

    Fatal error: require() [function.require]: Failed opening required ‘./public_html/oguin/wp-blog-header.php’ (include_path=’.:/usr/lib64/php:/usr/lib/php:/usr/share/pear’) in /home7/ameridr9/public_html/floridaportraits/index.php on line 17

    Anything else anyone can suggest?

    Thanks,

    Pamela

    the core files are the files. wp-config, settings, admin, includes & content fodlers, etc. it means wordpress and not a plugin basically.

    as for the errors, it is saying it can’t find the files in relation to the siteurl you have entered. all it can really be is you have the files and the siteurl mixed up somewhere, and it is not telling it where to look.

    without knowing your file structure and seeing your settings, i can’t say much more.

    Thread Starter Cyberbronco

    (@cyberbronco)

    Digibucc,

    The file structure where the current wordpress site resides is americanphotopro.com/public_html/oguin. (Yes I know I messed up when I created another file named public_html file within the file structure) from this can you tell me how the index.php should read instead of: (./public_html/oguin/wp-blog-header.php)?

    Thanks so much for your help ??

    Pamela

    so the relative (Server) directory system is like this:
    public_html
    —>public_html
    ——->oguin
    ————>wp-config.php, /wp-content/, etc

    so assuming all of the wordpress files start in the oduin directory (meaning wp-config.php, the wp-content folder, etc are in there.),
    and my structure above is correct, the site url you want to put in wp-config and the address you want to put in your browser would be:
    https://www.americanphotopro.com/public_html/oguin/

    now i know you said you want to use floridaportraits.com. i assume from how you worded your question that you own both domain names and the real host is americanphotopro. floridaportraits is just a domain name pointer that goes to a folder on the americanphotopro website?

    does that domain point to the oguin folder? if not, where does it point? that’s the most critical piece for floridaportraits to work.

    IF floridaportraits is set up to point to the oguin folder, AND wordpress files are located there, then you want to set the siteurl to:
    https://www.floridaportraits.com

    i am confused by the second part of your last reply. what do you mean how the index.php file should read? and why does it read wp-blog-header? when you load your site you should be calling a directory, not a file. wordpress is dynamic, you are not actually loading an index file like with static sites, index.php is just a base starting point for the code to bring together content.

    glad to help ??

    Thread Starter Cyberbronco

    (@cyberbronco)

    Digibucc,

    You are correct on the server directory. My site is Americanphotopro.com. Floridaportraits.com is a subdomain of americanphotopro.com. I own both domains.

    I have Floridaportraits.com set up as a subdomain in the public_html of https://www.americanphotopro.com

    Yes, the WordPress files are all in the oguin directory.

    How do I “set Floridaportraits.com to point to the oguin directory?”
    I thought that is what the index.php file was doing?

    Thanks again,

    Pamela B.

    Thread Starter Cyberbronco

    (@cyberbronco)

    Giving up! What I was hoping to accomplish here is the following. I created the example above because I actually did this with a site I was building for a friend: I built a live site in the following directory on my server: americanphotopro.com/public_html/oguin

    Once I got the site done I wanted to move it to a new domain I purchased: https://www.floridaportraits.com

    Since I used a program called “Builder” I couldn’t easily copy and paste everything or use the wordpress ‘export’ feature. So I wanted to ‘redirect’ from https://www.floridaportraits.com to the directory where I created the WordPress site. I tried all of your suggestions and more. I still cant get it to work. I either get the error mentioned earlier or I get to a perfectly blank white page.

    I’d still like to get there if anyone things they have the answer. Thanks so much to Digibucc for all your ideas.

    Pamela B.

    well in order for your subdomain to point to the oguin directory, it needs to be configured to do so in it’s control panel.

    whoever you bought floridaportraits.com from, has a page somewhere that lets you set domain forwarding. if you know where to login to set up new email addresses, etc – it is often the same place.

    if you don’t know, then just call the registrar. jic, fyi the registrar is the company that bought the domain name for you. you pay them, they allocate the address and point your name to it. you can call them and ask them to point the domain to a specific folder on another domain. if you host & buy names through the same company it should be simple.

    good luck!

    P.S. the index.php file is on the site, so the name can’t point there if it needs the address of the site to get there. that’d be like leaving your map and compass at the end of the trail ??

    what points to where, is called a DNS server. whoever you bought the name from would add an entry into their DNS server, that that name points to whatever address/folder it’s supposed to. then within 48 hrs that entry gets spread to other DNS servers, and your site is live.

    Thread Starter Cyberbronco

    (@cyberbronco)

    Wow! Thanks digibucc! I am feeling every bit of my “Dumb-blondness” now ;)I get my domains from a different place than my host. I went online with them and changed the name servers to my new host (bluehost) and that works okay, but you are telling me I can call the other company and they can point to a specific file at my host?

    Please let me know if I have that correct.

    Thanks so much!

    Pamela B.

    well no, if you switched it to your bluehost’s nameservers, then you need to make the change in bluehost’s control panel. if you have already done that, then it’s all moot. if you switched the nameservers but didn’t set up where the name should actually point, then you will need to do that. the main name will work (americanphotopro) but any other names need to be specifically pointed to the folder/file they are to open (for wordpress it’s the root folder)

    not a file, a directory. you would want it to point at (oguin) the directory that contains wordpress. it does have an index.php file, but you don’t point to that, just the directory itself.

    so assuming we are right about the directory layout, you will want your to point “floridaprotraits.com” to https://www.americanphotopro.com/public_html/oguin/. you would also want them to have https://www.floridaportraits.com, and *.floridaportraits.com forwarded there as well.

    You cannot point floridaportraits.com directly to the oguin directory because BlueHost uses cPanel which cannot add an addon domain to any directory on a deeper level than directly in the default public_html itself.

    Your structure then would have to be something like:
    public_html/oguin
    Not:
    public_html/public_html/oguin

    In this case you would need to move the whole oguin directory out of the second public_html directory, and up a level into the first public_html directory.

    Thread Starter Cyberbronco

    (@cyberbronco)

    bh_WP_fan
    Thanks! I was busting my brain trying to get that to work! Can any other host or domain manager point to a directory like that?

    Thanks,

    Pamela B.

    well what they said is really no big deal, you just need to get rid of the extra public_html folder. you don’t need a different host.

    they just meant it won’t let you go two directories deep, which isn’t really limiting. you just need to put oguin into the root instead of inside the additional public_html folder.

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘Changing URL without moving site?’ is closed to new replies.