WordPress website not working with domain name but IP address - wordpress

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.

Related

Moving WordPress to another domain

I have been making a website for a friend of mine.
http://freelanceaccounting.co.za
It's for a school. Now I want to move the entire WordPress site to his domain.
I was going to follow this guide: (also unless I am mistaken this guide says I don't need to install WordPress on the new domain, the install.bak that the plugin creates. will install it for me???)
http://www.wpbeginner.com/wp-tutorials/how-to-properly-move-wordpress-to-a-new-domain-without-losing-seo/
But I wanted to know if the SO community knew a better way?
Does your domain have a host? if yes download your existing file and upload it to host.
https://ph.godaddy.com/help/upload-files-3239
also dont forget to configure your database in host..
It's easiest way drop a mail or call to hostiong provider say i want to change domain name and set DNS server to new domain and change DNS to old domain.
and check... :)

Wordpress installation says not supported

I do not have a domain yet so I want to use a temp URL to access my Wordpress site. I have installed Wordpress as normal, changed siteurl and home in the MYSQL database to the new temp url, but all i get when i visit my site is 'Not Supported'.
I had setup previously setup another account with a domain and that worked fine. I have trawled the internet and cannot find anyone who has had this problem before?
Hope you can help
I had the same issue. Turns out it’s a server configuration issue with Apache. You can confirm that is also your problem by placing an empty index.php in your home directory in the place of WP’s index.php. If you still get the error, that’s what is going on.
Here’s the Apache documentation on it:
https://documentation.cpanel.net/display/ALD/Apache+FAQ#ApacheFAQ-WhydoIreceivea%22NotSupported%22messagewhenIattempttoaccessmywebsitewithamod_userdir-styleURL?

Post locally hosted wordpress site online

Can we upload a locally hosted wordpress site to any host or just the ones that support wordpress? I am using serverpress desktop-server to create wordpress sites locally, but I am really in a fix trying to find how I can publish them online.
You can upload your locally hosted site to any server that satisfies the minimum requirements WordPress needs to work. Those requirements are given in the following link.
https://wordpress.org/about/requirements/
Welcome to stack overflow :)
I think your question has been asked already, Please search on stack overflow to see if someone has asked the same question already to avoid getting your question down voted for being a duplicate.
Anyways here's what you gotta do...
Use https://wordpress.org/plugins/duplicator/
First, duplicate your site (you need to be an admin).
Then download zip file and installer.php and upload to your new host.
Then Create a new DB for your installation on your host.
Now assuming you uploaded to root of your site and your domain is example.com... head over to example.com/installer.php
Type in your db credentials and name (Warning Be careful with db name if you enter another pre existing DB it will be wiped out! ) details and domain related details.
It will take a 5 - 10 minutes or more depending on your site size and new servers speed.
Finally... You'll be presented with Success notice, check out the logs if you want to... Next thing you need to do is to login to your new site at example.com/wp-admin and save the permalinks page in settings to fix permalinks.
Voila! You just got your site migrated from localhost to a live server, Congrats!
Initial server doesn't have to be localhost you can follow same procedure to move your site from example1.com to example2.com...
Hope that helps :-)

Nothing works past the index/main page. Am I missing anything?

I am currently migrating my website that was hosted on GoDaddy to an Amazon Linux instance. Everything has worked so far using elastic IP that I allocated, but I haven't been able to access other pages using the GoDaddy domain I transferred from my original website.
I have tried to change the site address/URL structure in the Wordpress settings, but I almost broke my website (TWICE!). Should I be changing one of the .htaccess files instead of the native Wordpress setting?
My elastic/public EC2 instance IP is: 52.26.232.168
The domain I would like to point to the IP is: artrantsbyaj.com.
Any help is greatly appreciated.
NOTE: I do not yet have a high enough reputation to post images yet, I apologize.
Try to refresh your permalinks:
Go to the permalink settings and save them (do not change anything, only click on save to refresh your permalink structure).
Test it and let me know if you have any problem.
Regards.

Changing the URL of a wordpress site

I have a wordpress site at http://myname.myprovider.info and I just bought the domain http://www.myname.com
Ive tried to change the URL in the backend at "Setting > General" both fields WordPress Address (URL) and Site Address (URL) with http://www.myname.com. The moment i click save, Im automatically logged out of the backend. If i try to log back in, I get a white screen.
The only way to log back in is to add in the config file the following line:
define('RELOCATE',true);
If then I go back to "Settting > General" I see that WordPress Address (URL) still has the http://myname.myprovider.com and everytime I try to change it again, the loop starts again...
What can I do?
you cant just change the url in wordpress ... you would need to move all the files to your new host
you can facilitate this in wp-admin
under tools select export and follow the dirrections
then setup wordpress on your new host
and goto wp-admin and select tools import and select the earlier exported file
If you're moving from a subdomain to the main domain, you have to move files. See Moving WordPress « WordPress Codex and How to Move WordPress Blog to New Domain or Location » My Digital Life and check with your host; the URL structure "myprovider.info" may be problematic, whoever the "provider" really is.
I had a very similar problem some time back and I'm trying to remember what the source of the problem was. Until I do, here are some ideas you may or may not have tried:
(obviously backup everything first!)
Check your code (theme, scripts, functions.php, etc.) for any instances of the old URL. Sure, we all know better than hard-coding the URL but...
Do a search through your WordPress database for the old URL. Carefully (very carefully!) replace it with the new one. In my experience some plugins aren't well behaved when it comes to storing the web site URL in the database.
Try disabling all plugins to see if one of them is causing a problem.
I assume you've set the DNS by hand, rather than your domain registrar putting in place some kind of forwarding?
After much tinkering, it turns out I didnt configure the domain properly :P Thanks for all the help anyway.

Resources