Title: Website Redirect Issues
Last modified: August 21, 2016

---

# Website Redirect Issues

 *  [jdsa](https://wordpress.org/support/users/jdsa/)
 * (@jdsa)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/website-redirect-issues/)
 * Please help. I built a wordpress site in a subdirectory folder. I was attempting
   to make the site live and tried following the online directions of changing the
   code in the index.php, but now everything is screwed up. I am unable to login
   to the admin screen. The front page of the website is showing, but the inside
   pages say that aren’t redirecting properly. I’m new to wordpress and am at a 
   complete loss as to what to do.
 * The site is [http://www.pavementcorporation.com](http://www.pavementcorporation.com)
   the subdirectory is
    [http://www.pavementcorporation.com/wordpress_0](http://www.pavementcorporation.com/wordpress_0)

Viewing 7 replies - 1 through 7 (of 7 total)

 *  [The Grey Parrots](https://wordpress.org/support/users/greyparrots/)
 * (@greyparrots)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/website-redirect-issues/#post-4689167)
 * Hi,
 * Edit your wp-config.php file.
 * Define your WP_HOME and WP_SITEURL settings by inserting these lines towars the
   top:
 *     ```
       define('WP_HOME','http://www.pavementcorporation.com');
       define('WP_SITEURL','http://www.pavementcorporation.com');
       ```
   
 * Please be aware you cant change the url via wp-admin dashboard once modified 
   by the config file.
 *  Thread Starter [jdsa](https://wordpress.org/support/users/jdsa/)
 * (@jdsa)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/website-redirect-issues/#post-4689174)
 * Thank you for your reply. I think I may have done something wrong. I put in the
   lines above, but then everything stopped working. The home page was gone and 
   I wasn’t able to access the admin page.
    Did I screw something else up?
 *  [Senff – a11n](https://wordpress.org/support/users/senff/)
 * (@senff)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/website-redirect-issues/#post-4689176)
 * > Please be aware you cant change the url via wp-admin dashboard once modified
   > by the config file.
 * …Which is why it’s not the best method to use. 🙂
 * Go to [http://pavementcorporation.com/wordpress_0/wp-admin](http://pavementcorporation.com/wordpress_0/wp-admin)
   to log in to your admin. Then in **Settings -> General** and set the **WordPress
   Address** to [http://pavementcorporation.com/wordpress_0](http://pavementcorporation.com/wordpress_0)
   and the **Site Address** to [http://pavementcorporation.com/](http://pavementcorporation.com/)
 *  Thread Starter [jdsa](https://wordpress.org/support/users/jdsa/)
 * (@jdsa)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/website-redirect-issues/#post-4689178)
 * Unfortunately, when I got to [http://pavementcorporation.com/wordpress_0/wp-admin](http://pavementcorporation.com/wordpress_0/wp-admin)
   it redirects to
    [http://pavementcorporation.com/wordpress_0/wp-login.php?redirect_to=http%3A%2F%2Fpavementcorporation.com%2Fwordpress_0%2Fwp-admin%2F&reauth=1](http://pavementcorporation.com/wordpress_0/wp-login.php?redirect_to=http%3A%2F%2Fpavementcorporation.com%2Fwordpress_0%2Fwp-admin%2F&reauth=1)
   I try to login but nothing happens.
 *  [The Grey Parrots](https://wordpress.org/support/users/greyparrots/)
 * (@greyparrots)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/website-redirect-issues/#post-4689179)
 * In that case you have to update these on wp_options table.
 *  [Senff – a11n](https://wordpress.org/support/users/senff/)
 * (@senff)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/website-redirect-issues/#post-4689181)
 * The redirection is fine, that’s normal. Can you log in though?
 * Try adding this to your wp-config.php file:
 *     ```
       update_option('siteurl','http://www.pavementcorporation.com/wordpress_0');
       update_option('home','http://www.pavementcorporation.com');
       ```
   
 * Then try logging in at either [http://www.pavementcorporation.com/wp-admin](http://www.pavementcorporation.com/wp-admin)
   or [http://www.pavementcorporation.com/wordpress_0/wp-admin](http://www.pavementcorporation.com/wordpress_0/wp-admin)
 * If you’re successful, remove those two lines again from wp-config.php.
 *  Thread Starter [jdsa](https://wordpress.org/support/users/jdsa/)
 * (@jdsa)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/website-redirect-issues/#post-4689189)
 * Thank you both for your help. After much head scratching, turns out the problem
   seems to lie on on the hosting server. They are rebuilding the database.
    Thanks
   again!!

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Website Redirect Issues’ is closed to new replies.

## Tags

 * [admin not working](https://wordpress.org/support/topic-tag/admin-not-working/)
 * [can't login](https://wordpress.org/support/topic-tag/cant-login/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 7 replies
 * 3 participants
 * Last reply from: [jdsa](https://wordpress.org/support/users/jdsa/)
 * Last activity: [12 years, 3 months ago](https://wordpress.org/support/topic/website-redirect-issues/#post-4689189)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
