Title: Remove WP redirect
Last modified: May 23, 2024

---

# Remove WP redirect

 *  Resolved [hellopeople123](https://wordpress.org/support/users/hellopeople123/)
 * (@hellopeople123)
 * [2 years ago](https://wordpress.org/support/topic/remove-wp-redirect/)
 * Hi,
 * I’m not sure what I did, but after I created a WP account here, I suddenly have
   a wp redirect when I try to log in in my admin console. . It might have to do
   with my website in editing mode. I don’t know why it happened, all I know I can’t
   get into my website by logging into admin or by my ftp program (in cpanel as 
   well.) I don’t know where to find the redirect code to get it out, It’s like 
   my website has been hacked. I hope someone here can help me out. I’m not sure
   if I explained this problem well.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fremove-wp-redirect%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  [Harish Tewari](https://wordpress.org/support/users/harishtewari/)
 * (@harishtewari)
 * [2 years ago](https://wordpress.org/support/topic/remove-wp-redirect/#post-17776731)
 * [@hellopeople123](https://wordpress.org/support/users/hellopeople123/) try to
   login by this link. [https://frenchgen.com/wp-login.php](https://frenchgen.com/wp-login.php)
 *  Moderator [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * (@sterndata)
 * Volunteer Forum Moderator
 * [2 years ago](https://wordpress.org/support/topic/remove-wp-redirect/#post-17776734)
 * Creating an account on wp.org has nothing to do with your website. Where do you
   get redirected when you attempt to login?
 * Also, it seems that your theme is trying to load assets from wp.org onto your
   site, which is wrong!
 *     ```wp-block-code
       frenchgen.com/:2837 Unsafe attempt to load URL https://wordpress.org/wp-content/themes/gambit2/assets/icons/genericons-neue.svg from frame with URL https://frenchgen.com/. Domains, protocols and ports must match.
       frenchgen.com/:2837 Unsafe attempt to load URL https://wordpress.org/wp-content/themes/gambit2/assets/icons/genericons-neue.svg from frame with URL https://frenchgen.com/. 
       ```
   
 *  Thread Starter [hellopeople123](https://wordpress.org/support/users/hellopeople123/)
 * (@hellopeople123)
 * [2 years ago](https://wordpress.org/support/topic/remove-wp-redirect/#post-17776737)
 * Hi Harish,
 * Thank you for reaching out. When I log in, it takes me right to the WordPress
   website. Do you think reinstalling WP would solve the problem?
 *  Moderator [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * (@sterndata)
 * Volunteer Forum Moderator
 * [2 years ago](https://wordpress.org/support/topic/remove-wp-redirect/#post-17776758)
 * Oh, I see. What happens at [https://frenchgen.com/wp-login.php](https://frenchgen.com/wp-login.php)
   I can see what happens at wp-admin. Did you set up any redirects?
 *  Thread Starter [hellopeople123](https://wordpress.org/support/users/hellopeople123/)
 * (@hellopeople123)
 * [2 years ago](https://wordpress.org/support/topic/remove-wp-redirect/#post-17776783)
 * Hi Steven,
 * When I attempt to login from the admin.php option, it takes me to my WP account
   page
 * [https://profiles.wordpress.org/hellopeople123/](https://profiles.wordpress.org/hellopeople123/)
 * When I try to login via wp-admin of website, the login page shows up as as a 
   redirect WP log in, and once I log in, it redirects me to the front page of WP.
 * What should I do about the other problem? Delete the theme?
 * And, no, I did not set up the redirects! That is why it’s so puzzling.
 * I want to save the extra css additions in the theme (found in the bottom of customizer)
   Is there to do that? I would hate to lose them. I backed up my site a couple 
   of weeks ago, so it will not show the new css
    -  This reply was modified 2 years ago by [hellopeople123](https://wordpress.org/support/users/hellopeople123/).
    -  This reply was modified 2 years ago by [hellopeople123](https://wordpress.org/support/users/hellopeople123/).
 *  Moderator [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * (@sterndata)
 * Volunteer Forum Moderator
 * [2 years ago](https://wordpress.org/support/topic/remove-wp-redirect/#post-17776812)
 * With respect to the theme, ask here: [https://wordpress.org/support/theme/gambit](https://wordpress.org/support/theme/gambit)
 * As for the redirect, have you talked to your host? How did you install WordPress?
   This would be a weird behavior for a hack.
 *  Moderator [threadi](https://wordpress.org/support/users/threadi/)
 * (@threadi)
 * [2 years ago](https://wordpress.org/support/topic/remove-wp-redirect/#post-17776870)
 * You have entered wordpress.org as your website URL in the backend settings. This
   is causing the redirect, and as a result the frontend is currently broken.
 * Solution: you need to change the URL back to the correct domain.
 * There are several ways to do this:
 * a) You log into the database of your project (e.g. via phpmyadmin). Your hoster’s
   support can tell you how to do this. There you will find a table called “options”(
   with the prefix of your project in front of it, e.g. “wp_options”). There should
   be a data record with the option_name “siteurl”. You adjust its entry. You should
   then be able to log in to the backend immediately.
 * b) Edit the wp-config.php file via FTP. Your hoster’s support can tell you how
   to connect via FTP. In the file, enter the following before the comment
 *     ```wp-block-code
       /* That's all, stop editing! Happy publishing. */
       ```
   
 * enter the following 2 lines:
 *     ```wp-block-code
       define( 'WP_HOME', 'https://frenchgen.com' );define( 'WP_SITEURL', 'https://frenchgen.com' );
       ```
   
 * Save the file via FTP. You should then be able to log in again.
 * If one of the two ways seems too difficult for you, please contact your hoster’s
   support if necessary.
 * By the way, this information has nothing to do with the account here on wordpress.
   org. There is no connection whatsoever. You probably entered the wrong URL there
   in a careless moment instead of in the URL line of your browser.
 *  Moderator [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * (@sterndata)
 * Volunteer Forum Moderator
 * [2 years ago](https://wordpress.org/support/topic/remove-wp-redirect/#post-17776878)
 * [@threadi](https://wordpress.org/support/users/threadi/) Brilliant!
 *  Thread Starter [hellopeople123](https://wordpress.org/support/users/hellopeople123/)
 * (@hellopeople123)
 * [2 years ago](https://wordpress.org/support/topic/remove-wp-redirect/#post-17776904)
 * Thank You threadi! I’ll start working on it!
 * Thank you, Steven and Harish for your help! You guys answered so quickly!
 * Thank you all!
 * I
 *  Thread Starter [hellopeople123](https://wordpress.org/support/users/hellopeople123/)
 * (@hellopeople123)
 * [2 years ago](https://wordpress.org/support/topic/remove-wp-redirect/#post-17776923)
 * threadi, It Worked!! I was able to edit the admin.config myself with your stellar
   instructions
 * Thank you so much!

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

The topic ‘Remove WP redirect’ is closed to new replies.

 * In: [Everything else WordPress](https://wordpress.org/support/forum/miscellaneous/)
 * 10 replies
 * 4 participants
 * Last reply from: [hellopeople123](https://wordpress.org/support/users/hellopeople123/)
 * Last activity: [2 years ago](https://wordpress.org/support/topic/remove-wp-redirect/#post-17776923)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
