• CW90

    (@cw90)


    Hi my url use to be http://www.cvcsuk.co.uk/site/ And I tried to change it to http://www.cvcsuk.co.uk/cleaning/ Using this method:

    If you have access to the site via FTP, then this method will help you quickly get a site back up and running, if you changed those values incorrectly.

    FTP to the site, and get a copy of the active theme’s functions.php file. You’re going to edit it in a simple text editor (like notepad) and upload it back to the site.

    Add these two lines to the file, immediately after the initial “<?php” line.

    update_option(‘siteurl’,’http://www.cvcsuk.co.uk/cleaning&#8217;);
    update_option(‘home’,’http://www.cvcsuk.co.uk/cleaning&#8217;);

    Then pressed update file, now it looks like this

    I tried deleting the code and updating the file but made no difference.

    How can I fix it?

    Thanks

Viewing 15 replies - 1 through 15 (of 19 total)
  • bottleneck

    (@bottleneck)

    Technically,
    http://www.cvcsuk.co.uk/
    either
    http://www.cvcsuk.co.uk/site/

    redirects to

    http://www.cvcsuk.co.uk/cleaning/

    Is that your plan? If so, it works, otherwise I missed something.

    Thank you.

    Thread Starter CW90

    (@cw90)

    Yeah thats my plan and it works. But since doing that the page has unformatted itself. Don’t know the proper term for it just now to all this.

    The templet used was BizWay.

    http://wordpress.org/extend/themes/bizway

    And doesn’t look like that any more.

    bottleneck

    (@bottleneck)

    okay ,

    see
    http://validator.w3.org/

    for /cleaning, count errors,

    then switch to /site by running

    update_option('siteurl','http://www.cvcsuk.co.uk/site');
    update_option('home','http://www.cvcsuk.co.uk/site');

    see errors again,
    notice the difference, get a solution, fix it, switch back to /cleaning

    Thread Starter CW90

    (@cw90)

    Tried that came up with 22 errors.

    I tried switching back to /site.

    Then the page wouldn’t open at all. Now I can’t get on to the admin page using /wp-admin.

    Might be better off just starting from nothing again. Really dont know what am doing at all if am honest

    bottleneck

    (@bottleneck)

    Dude, I am on the go, can’t use my network tools as we speak. Yet you could try to login using yoursite/site/wp-login.php either get function.php via ftp and switch back to /cleaning

    bottleneck

    (@bottleneck)

    Wait, do you have two instances of WP in each folder ( totally two) or it’s the same WP and you renamed its directory?

    Thread Starter CW90

    (@cw90)

    I tried that dude. It took me to my log in page. Logged in then this is what it said in on the page

    This web page has a redirect loop
    The web page at http://www.cvcsuk.co.uk/cleaning/wp-login.php has resulted in too many redirects. Clearing your cookies for this site or allowing third-party cookies may fix the problem. If not, it is possibly a server configuration issue and not a problem with your computer.
    Here are some suggestions:
    Reload this web page later.
    Learn more about this problem.
    Error 310 (net::ERR_TOO_MANY_REDIRECTS): There were too many redirects.

    Am using Chrome bowers if that makes any difference

    bottleneck

    (@bottleneck)

    Okay, try to roll back by editing function.php via ftp

    Thread Starter CW90

    (@cw90)

    The original was. http://www.cvcsuk.co.uk/site/ and was working fine.

    Untill I tried to change it to /cleaning/ as my main/home page adress. the way I said at the start. Since then the site hasn’t worked, well looked the same/like it should

    bottleneck

    (@bottleneck)

    So recall all your steps when you changed from /site to /cleaning and just play them back. If you changed it one time previously, you could get it again and again. Just repeat all steps, currently you miss something, I guess.

    bottleneck

    (@bottleneck)

    Do you have phpMyAdmin access?

    Thread Starter CW90

    (@cw90)

    I have tried that. Deleted what I added straight after it went like it is just now and has stayed the same no matter what I have done.

    And still can’t get logged into my admin page to make any changes.

    Not that I know of? DO I need to download it?

    Like I said I really don’t know anything about coding or web pages. This is the first time I have done this. And anything I have learnt to do/changed has usually been copied and pasted of the net

    bottleneck

    (@bottleneck)

    Don’t panic. What you did with function.php it’s just updating two records in a database. Then something went wrong. We can edit those two damn lines directly. If you have cpanel from your host, there is phpMyAdmin app. Can you reach it?

    Thread Starter CW90

    (@cw90)

    Yeah have managed to find it and get on to it

    bottleneck

    (@bottleneck)

    Okay, I will be home soon and provide you with instructions

Viewing 15 replies - 1 through 15 (of 19 total)
  • The topic ‘Page Not Found and Unformatted’ is closed to new replies.