How to change admin panel link in Wordpress? - wordpress

I completed my development on my local environment. The url on my local environment was samplesite.local
After I finished the development, I uploaded it to the server and the url was working but when I try to open admin panel of wordpress, it directs me to the local link.
For example, when I try to login this link:
samplesite.com/wp-admin
then it goes to:
samplesite.local/wp-admin
What is the problem here? Thank you.

You need to change the values in the options table, as at present the option value is referencing to your local development url, causing these errors.
You really need to read up on the codex before posting a question here.
https://codex.wordpress.org/Moving_WordPress
I believe this question has been asked many times here. Please use the search function of site before posting a question.
Moving Wordpress Domain

After Moving the files & Database. you need to change the domain name in database config. The easiest way to do it by using Search-Replace-DB Script.
Just Download the tool from here :
https://interconnectit.com/products/search-and-replace-for-wordpress-databases/
Just fill samplesite.local in search and samplesite.com in replace and run the tool. it will do all the task automatically.
hope it will help you.

Related

My wordpress website being hacked with code eval($_SERVER['HTTP_81DB2B3']

I have a problem with my website, I get information from wordfence about my WordPress website getting hacked
enter image description here add found a code eval($_SERVER['HTTP_81DB2B3'] so i removed it but in a few second the code going back. someone, please help me
I had something very similar to this. Go to your cPanel and search for "Cron Jobs" and scroll down to see if there's any malicious cronjobs setup. You might have some that look like eval(gzinflate(base64_decode(.... that are essentially causing this to reoccur. Not a complete fix to this issue, but you'll have to delete those cronjobs to ensure that that line of code doesn't keep reappearing. In addition to that, you'll also need to make sure those cronjobs don't show up again. Use a plugin like Wordfence (suggested above as well) to look for malicious files and if it helps replace your home directory (except for wp-content and wp-config) with fresh files.
If your website got hacked then I guess more than 1 file was affected by it,
case-1: If you are able to access the Wordpress Backend In this case, if you are able to access the Wordpress backend then I suggest you
Step-1: Add one plugin called (Wordfence Security – Firewall & Malware Scan
) and scan your website with it.
Step-2: After scanning the site remove all suspicious code from the site.
Case 2: If you are not able to access the Wordpress backend then you have to update your Wordpress manually with the hosting file manager or FTP.
Please Note: Please take a backup of your website before do any changes.

WordPress website not working with domain name but IP address

http://sidparmar.ca/portfolio/ This is my portfolio website and an only home page is working with the domain name. Every link is broken unless replaced by IP of my VPS which is 64.20.53.42.
So usually it should work like sidparmar.ca/portfolio/contact/ (give me an error "The requested URL /portfolio/resume/ was not found on this server.")
but currently, it is only working if I type 64.20.53.42/portfolio/contact/ as URL.
Please let me know if you have any suggestions/advice or pointer that I should look into. Any help is appreciated.
Has your site been like this since you installed Wordpress? If so, then where did you install wordpress (i.e. what directory)? It looks like you did not install it in the web root directory of your web server. Also, when you installed Wordpress, are you sure you specified the correct URL of your website?
My suggestion based on the limited information you provided and the minor amount of custom content of your website is to simply delete your database and files, create a new database, and re-installation Wordpress following exactly the correct instructions. Your VPS host may have an outlined process for you.
Alternatively, if this is a new issue, do you think you caused it? If so, what did you do? If not, you should probably contact your VPS host to see if you or they need to make an update in your DNS settings.
Found the answer by myself! Yeah!
I just added "ServerAlias www.domainname.ca" to my apache2 conf file (000-default.conf) which you can probably find at /etc/apache2/sites-available directory in your VPS.
Not sure why this worked or what exactly caused the problem but I am sure that it happened because of Yoast SEO plugin.

Wordpress - Migrate site with BackWPup to local environment. Url issue

I am using the plugin BackWPup to migrate my site, to a local environment for testing.
My problem is the url's. They point back to the site online and not my site locally.
I am using xampp and phpmyadmin.
This is my first migration. The database is connected and everything seems to work, except for the url's. Where can i change the url's? Do i need to change it in the database. If so which table?
Thanks in advance
I fixed my problem.
I followed these tutorial.
https://www.sitepoint.com/how-to-migrate-a-wordpress-site-to-a-new-domain-and-hosting/
https://codex.wordpress.org/Changing_The_Site_URL
After you done this, remember to go directly to.
www.yoursite.com/wp-admin
Check your permanent links
Hope this helps someone else.

Activate a second wordpress-installation on a domain

I have installed wordpress on a domain and I'm gonna add a second language so I've also installed another wordpress in a subdirectory. Now it's located in:
mysite.com/en/wordpress
but i need it to be
mysite.com/en
For the first installation i followed this guide:
http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory
But it seems like it doesn't work with multisites.... So do I fix this?
No it's no problem to change it. A few steps to follow.
Go into your WordPress admin panel and update the site url and blog url to point to your new location. Then click save.
Rename the folder from wordpress to en
Finally you may have some problems with images, if so you will need to replace the old urls in your database. Personally I would import the database, run a find and replace and then re-import the sql script.
Here is another solution though that runs a query on the database and will also work. http://www.master-script.com/moving-wordpress-site-to-new-domain.html
Note if you are going to run the find and replace on the database anyway the first step is irrelevant as it will be changed also.

Migrating wordpress 3.0.1 from one server to another

Here's what I wanted to dot, what I've done, and... the (poor) result:
I wanted to: migrate my personal Website from one server to another one, and only change the IP on my DNS. So:
I changed the IP on my DNS. Ok. Everything's fine (it's been 7 days now)
I dump my Wordpress 3.0.1 database from server A
I copied recursively the full directory of my personal Website to the server B
on server B: I've created my utf8 wordpress database then re-injected the SQL dump (from A)
I've created the good user with the right permissions on the database B
And now:
Everything works fine... Well Err... only the main page! See http://olivierpons.fr/ then click on a topic.
I can't even log in! Do you know where I should look or what I am missing?
Thanks a lot!
Olivier
Check if you included the .htaccess file. It's easy to forget those "hidden" files
Has your domain name changed? Your articles seem to link to oliverpons.com, rather than oliverpons.fr. If you've changed the domain name, you'll probably want to change the "siteurl" and "home" values in the wp_options table. See this Codex article for more info. Also, as windyjonas says, check your .htaccess.
Bear in mind that this isn't really a programming-related question; you may be better off asking in other places.
Okay I still don't know where the problem was, but here's what I did:
I exported all the articles from my
old webserver A into a file XML_A
I created manually a new database on B
I launched Wordpress on B
I created all what's needed on B,
I imported all from the file XML_A
It works now but I'm pretty convinced this is not the right way to do this...
And I finally found the right answer an the right place (in case this might help someone):
http://codex.wordpress.org/Moving_WordPress
Try this method as well if it works for you.
http://www.sayopenweb.com/migrating-wordpress-from-one-domain-to-another-domain/
especially if your URL or domain is changed.
I had the same issue and figured a custom way of migrating it. follow the link.

Resources