Wordpress port redirect error - wordpress

I tried installing wordpress localy using WAMP - but it seems that some setup is wrong because when I try accesing the http://localhost:1550/wordpress it redirects me to http://localhost:8080/wordpress where I get an error - 404 ERROR!
I don't quite seem to undersand why does this problem seems to occur!
P.S. I've have made all the changes on the apache httpd.conf to listen to 1550 port!

Wordpress has configurations that store the site URL, which it uses to handle redirects. This is stored in the database in a table called wp_options. You'll need to update "siteurl" and "home" to change the port from :8080 to :1550.

Related

Wordpress shows homepage (200) instead of 404 in > third url segment

I'm currently running into a strange problem with Wordpress on my production server. When I try to visit non-existing URLs, Wordpress doesn't trigger a 404 when the url has more than 3 segments, for example:
These pages don't exists and trigger a 404 page:
http://example.com/9
http://example.com/9/9
These also dont exist, but don't trigger a 404 page and show the homepage (with 200 response code):
http://example.com/9/9/9
http://example.com/9/9/9/9
http://example.com/9/9/9/9/9
On my local machine all above pages show a 404 (as expected). The server (and my local machine) are both running nginx >10.16, both nginx vhost configs are almost equal. Running PHP72-fpm.
Debugging I already did:
Disable functions.php in theme folder
Disable all plugins
Switch to other theme
Disable cloudflare caching
Flush permalinks
All without any success unfortunately.. I'm kinda running out of options for debugging, I hope anyone has got any suggestions!
I just found out that locally I'm running PHP73, on the production server PHP72. I've just upgraded the production server from PHP72 to PHP73 and the problem seems to be fixed!

Wordpress:Can't able to access Wordpress after migrate from http to https

I am converting my wordpress site to https from http.I am using aws machine(windows OS) and i got the free ssl certificate,but when i tried to access my site it shows "Forbidden You don't have permission to access / on this server." this error message.I am tried almost all the solution(Deleting htaccess file,plugins uninstall,changing httpd.conf etc) but none of them worked.Any one help me i really need this one.
Can you try to test it by removing htaccess file?
Also from your database phpmyadmin go to wp_options table and from there verify that you have https urls.
Also if it does not works then tru to rename plugins folder and then test it.
Also add Really Simple SSL plugin and test your site.

Unable to successfully change wordpress site URL

I'm trying to set up Wordpress with Multisite, and the first thing I'm trying to do after getting the Bitnami AMI running on an EC2 host is assign an Elastic IP. However, as soon as I assign this, I'm unable to get to my Wordpress login page due to redirect issues.
When I try to go to my new URL of http://ec2-xx-xx-xx-xx.us-west-2.compute.amazonaws.com, I get redirected to http://ec2-xx-xx-xx-xx.us-west-2.compute.amazonaws.com/wp-signup.php?new=ec2-xx-xx-xx-xx.us-west-2.compute.amazonaws.com, with a redirect loop error shown by my browser. (The IP address, noted with x's, is the same in all 3 cases).
Also, as expected, my apache access_log spits out 20 of the following lines when I try to access my site:
[05/Jun/2016:19:56:41 +0000] "GET /wp-signup.php?new=ec2-xx-xx-xx-xx.us-west-2.compute.amazonaws.com HTTP/1.1" 302 -
Things that do work
Before I assign the Elastic IP, I can access the Wordpress site from http://ec2-yy-yy-yy-yy.us-west-2.compute.amazonaws.com, as long as I dont make any changes to the site URL after spinning up the EC2 instance with the Bitnami Wordpress AMI.
After assigning the Elastic IP, I can SSH into the EC2 instance with both the new IP and the corresponding *.compute.amazonaws.com hostname.
Things I tried
Following these steps, I've...
Updated DOMAIN_CURRENT_SITE in my wp-config.php, as well as updated site_url and home to match the new hostname.
Added WP_HOME and WP_SITEURL to my wp-config.php
Added the RELOCATE flag
None of those appear to fix the redirection issue.
Aha - I found another link that states migrating a Multisite setup is a bit more involved, and requires searching through all database tables for any references to the old hostname:
http://codex.wordpress.org/Moving_WordPress
Searching through all the tables in phpmyadmin... I did find some more references! After updating all of these, I can now get to my site using the new Elastic IP.
Bitnami stacks come with a tool to automatically configure the machine IP of the installation. In the case of WordPress, you just need to SSH into your machine and execute the following command:
sudo /opt/bitnami/apps/wordpress/bnconfig --machine_hostname NEW_DOMAIN
Hope it helps.

Wordpress Live copy & Xampp with different port

So there is this live wordpress-site and I have to make some new adjustments. Therefore I dumped the whole database and copied the files via FTP to my localhost (c:\xampp\htdocs\mycopy).
However I run XAMPP on port 808 and the wp-copy can't deal with this.
http://localhost/mycopy/
404 - Not found
Tried it with
http://localhost:808/mycopy/
301 - moved permanently -> redirects to
http://localhost/mycopy/
and that gives again 404 not found.
Then I found the wp_options table in the database and set the "siteurl" and "home" both to
http://localhost:808/mycopy
Still no change...however I can open
http://localhost:808/xampp/splash.php
with my browser and it`s working like a charme.
Additional note:
http://localhost:808/mycopy/wp-admin/
redirects to www.livepage.de/wp-admin/
What did I miss?
You need to change links in database. WordPress stores full path links in the DB.
Set DB_HOST to "localhost:808" in wp_config.php
Then use this tool to replace urls in the database:
https://interconnectit.com/products/search-and-replace-for-wordpress-databases/
just follow the instructions
I found the prob....and I am as dumb as a brick. httpd.conf has this line
#Listen 12.34.56.78:80
and I changed it to 127.0.0.0.1:808
now take a wild guess what my problem was....But thx for your answers, I appreciate it!

WordPress on localhost{:port number}

I am trying to put my Wordpress site on my localhost{:port} using MAMP.
When I try to access my Wordpress site it redirects from my localhost:8888/site to localhost/site!
I have been trying everything to change it and nothing has worked for me. I have tried this disable plugin -http://marvintam.com/2009/05/wordpress-on-localhost-port-number/ but it still does not work for me.
Any suggestions? Am about to explode with fustration.
Thank you.
a) Check if exists .htaccess on site root directory that redirects for some reason.
b) Check the wp-config file and change WP_SITEURL .
c) Do you really need your web server to run on port 8888 ? if no then go to
mamp->preferences->ports and change Apache port to 80 and then restart services

Resources