Support » Fixing WordPress » Moving URL problems

  • I am trying to get the /WP out of my URL. I was following the directions on the “” page.
    The directions say:
    8. Open your root directory’s index.php file in a text editor
    9. Change the following and save the file. Change the line that says:
    to the following, using your directory name for the WordPress core files:

    However, my index.php does not have this code.
    This is the file:

    [ 103 lines of code moderated. For more than 10 lines of code please use instead. ]

    What am I suposed to change?

Viewing 9 replies - 1 through 9 (of 9 total)
  • This looks like the index.php file for the wp-admin folder. They’re referring to the WordPress main index.php file.

    Ah, ok. I will try to find this. Thank You. I am new and learning.

    No problem. When you download WordPress, it is the index.php file in the main folder. So if you installed WordPress in the WP folder, it’d be located at WP/index.php

    I believe in their directions, though, for giving WordPress it’s own directory, you are supposed to copy that file over to your root directory (not the WP/ folder, your main web folder) and make the change to the file located there.

    I found it. However, I want there is no /***/ file to change it to. The site was I am trying to change it to
    What do I change?

    In the index.php file located at, find this:


    change it to:


    Thank you. I changed it and can find the site now. However, I cannot login or get to the dashboard. Is ther a backdoor to it?

    I was an idiot. I changed both WordPress address and the site address in the Dashboard settings page. I should have just changed the Site URL option. Is there an easy way to just change the WordPress address back without undoing everything?

    Put this in the wp-config.php file:


    Change the appropriate URLs.

    Also, your login will still be in the wp/ folder so you’d go to to log-in

    Thank You. I had a brain cloud of the methane variety. I went to the PHPmyadmin and changed the directory in the options database. Then I deleted the index.php and htaccess in my new directory. This allowed me to access the Dashboard so I could start over. Thanks for your help. The site is working now.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Moving URL problems’ is closed to new replies.