Title: wp-config file problems
Last modified: August 21, 2016

---

# wp-config file problems

 *  [taramcnulty](https://wordpress.org/support/users/taramcnulty/)
 * (@taramcnulty)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/wp-config-file-problems/)
 * Hi!
    I need help changing permalinks. I tried to do it with the wp-config file
   but it doesn’t work. Now If I try to take the links out of the wp-config file
   my site won’t work. I can’t change the permalinks in the settings because it 
   is grayed out (because the links are in the wp-config file)
 * I can’t figure out how to fix this. Here is my wp-config file:
    [http://www.taramcnulty.com/wp-config.pdf](http://www.taramcnulty.com/wp-config.pdf)
 * This is my site:
    [http://www.taramcnulty.com/wordpress/](http://www.taramcnulty.com/wordpress/)
 * which I would like to change the wordpress url to just taramcnulty.com
 * This is driving me crazy! thanks in advance!

Viewing 15 replies - 1 through 15 (of 23 total)

1 [2](https://wordpress.org/support/topic/wp-config-file-problems/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/wp-config-file-problems/page/2/?output_format=md)

 *  Moderator [t-p](https://wordpress.org/support/users/t-p/)
 * (@t-p)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/wp-config-file-problems/#post-4560607)
 * Review:
 * [http://codex.wordpress.org/Using_Permalinks](http://codex.wordpress.org/Using_Permalinks)
 * [https://codex.wordpress.org/Settings_Permalinks_Screen](https://codex.wordpress.org/Settings_Permalinks_Screen)
 *  Thread Starter [taramcnulty](https://wordpress.org/support/users/taramcnulty/)
 * (@taramcnulty)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/wp-config-file-problems/#post-4560612)
 * Thanks, but this doesn’t answer my question.
    I can’t change any of the permalinks
   in wordpress dashboard, it won’t let me. I need to fix my wp-config file.
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/wp-config-file-problems/#post-4560621)
 * You cannot change permalinks via the wp-config.php file. What _exactly_ did you
   try to add to the file previously?
 *  Thread Starter [taramcnulty](https://wordpress.org/support/users/taramcnulty/)
 * (@taramcnulty)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/wp-config-file-problems/#post-4560627)
 * this was all that I added:
    deﬁne(‘WP_HOME’,’[http://www.taramcnulty.com/wordpress&#8217](http://www.taramcnulty.com/wordpress&#8217););
   deﬁne(‘WP_SITEURL’,’[http://www.taramcnulty.com/wordpress&#8217](http://www.taramcnulty.com/wordpress&#8217););
 * but when I take it out, my site doesn’t load up the template anymore and the 
   links from the homepage don’t work.
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/wp-config-file-problems/#post-4560633)
 * The lines you mention above are nothing to do with permalinks. Instead they change
   the site’s urls. Why are you trying to do that?
 *  Thread Starter [taramcnulty](https://wordpress.org/support/users/taramcnulty/)
 * (@taramcnulty)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/wp-config-file-problems/#post-4560636)
 * Sorry, yes I’m trying to change the urls.
    I want my wordpress site to be at 
   taramcnulty.com instead of taramcnulty.com/wordpress
 * but the way it is right now with my wp-config file I can’t take out those 2 lines
   without issues so I’m not sure how to fix it.
 *  Thread Starter [taramcnulty](https://wordpress.org/support/users/taramcnulty/)
 * (@taramcnulty)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/wp-config-file-problems/#post-4560639)
 * And if I try to edit those 2 lines to change it to the way I want it, the site
   breaks too.
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/wp-config-file-problems/#post-4560641)
 * > I want my wordpress site to be at taramcnulty.com instead of taramcnulty.com/
   > wordpress
 * Then you are going about it the wrong way. Did you move any of your WordPress
   files?
 *  Thread Starter [taramcnulty](https://wordpress.org/support/users/taramcnulty/)
 * (@taramcnulty)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/wp-config-file-problems/#post-4560642)
 * No kidding, why do you think I’m asking for help?
    no, I didn’t.
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/wp-config-file-problems/#post-4560645)
 * So your site is still at [http://www.taramcnulty.com/wordpress](http://www.taramcnulty.com/wordpress)?
 * Did you change any of the urls in Settings -> General?
 *  Thread Starter [taramcnulty](https://wordpress.org/support/users/taramcnulty/)
 * (@taramcnulty)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/wp-config-file-problems/#post-4560648)
 * Right, the site is still taramcnulty.com/wordpress
 * I can’t change any of the settings in settings>general because it is grayed out
   because I have those 2 lines of code in my wp-config file. but every time I try
   to take out those 2 lines of code the site breaks.
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/wp-config-file-problems/#post-4560662)
 * Can we see the site with those two lines removed?
 *  Thread Starter [taramcnulty](https://wordpress.org/support/users/taramcnulty/)
 * (@taramcnulty)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/wp-config-file-problems/#post-4560670)
 * ok i took the lines out.
    you can see now [http://www.taramcnulty.com/wordpress/](http://www.taramcnulty.com/wordpress/)
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/wp-config-file-problems/#post-4560679)
 * From what I have seen so far it seems that this site was originally installed
   in the root domain folder and then moved to a wordpress sub-folder, yes?
 *  Thread Starter [taramcnulty](https://wordpress.org/support/users/taramcnulty/)
 * (@taramcnulty)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/wp-config-file-problems/#post-4560692)
 * it’s here www/wordpress
 * I didn’t move it. I have another wordpress site in a subfolder

Viewing 15 replies - 1 through 15 (of 23 total)

1 [2](https://wordpress.org/support/topic/wp-config-file-problems/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/wp-config-file-problems/page/2/?output_format=md)

The topic ‘wp-config file problems’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 23 replies
 * 6 participants
 * Last reply from: [trsstudios](https://wordpress.org/support/users/trsstudios/)
 * Last activity: [12 years, 3 months ago](https://wordpress.org/support/topic/wp-config-file-problems/page/2/#post-4560765)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
