Redirect to other address Wordpress MAMP - wordpress

I move my wordpress from my server to my localhost in the database I change
http://www.hybrid-tech.net/praxi3 to http:// localhost:8888/praxi3
after that, when I try to see the website on my localhost I go to
http:// localhost:8888/praxi3
but it's redirect me to
http:// localhost/praxi3
and I'm don't understand why. I back up a restore many times this database and I still getting this problem.
Thanks in advance for your help.
PD: I'm using mamp. The localhost link are without the space I mean http://lo....

You should check your mamp configs :
Is your apache port set to 80 ? If so the server redirects you to the 80 (default web port)
Try setting it to the 8888 port and refresh your page using the flush cache command :
ctrl+r or apple+r

Related

Deploy gatsby on nginx has wrong redirect address when refresh and brings out port number?

I hava a website, and deploy the site on nginx in docker container. The proplem is when I refresh the site the chrome address bar brings out the port number and redirect wrong.
I am a front-end progromer and don't hava any server permission. so i can try nothing on back end. On the server side already tried nginx config file but nothing help.
This is the website address:
www.haetek.com/case
If you refresh brings out port number 8181.
www.haetek.com:8181/case
I expect normal address redirect.
This qustion is solved just add a slash at the end of the address,
this address
www.haetek.com/case
to this address
www.haetek.com/case/
I don't know the detail why it solved the problem. but it worked.

aws centos 7 wordpress apache redirect

I've got EC2 Amazon Linux 2 instance with apache, mariadb and wordpress
VPC, Security group, ACL are set up correctly, i'm using same rules for other websites and works perfectly
telnet ip 443 and telnet ip 80 - both are reachable, checked and connected
I don't have access to DNSes, so I changed windows host file. Both are pointing to the same ip.
x.x.x.x example.com
x.x.x.x example.sandbox.com
ping recognize both and showing that there is no issue with host file.
First website with SSL.
Second website without SSL (tests purposes).
They are using same database but different schema. So table
wp_options and value for home and siteurl are set up correctly for
https://example.com for first one and http://example.sandbox.com for
test one.
First website is working fine, showing example.com with SSL. Nothing to do. Problem is with test environment. Everytime I try to reach example.sandbox.com chrome first shows me warning that page is not secured (expected) and after that redirects me to example.com. Same with Firefox. After added exception it redirects me to example.com. I run out of ideas...
Apache configs in comment. Have no idea how to paste it into post without error. Spent hour on it...
Found it!
Wordpress plugin really-simple-ssl. Removed it and it works.

Local host WordPress website URL changed not able to revert back

I wanted to test my localhost WordPress website on a mobile device on my local network, So I changed my website URL and Site URL to http://192.168.1.3.8888 (wifi IP: Mamp apache port) previously it was http://localhost:8888/wordpress, Now I am unable to access the site from own pc with the new or the old URL.
I think in the new URL I used a '.' instead of a ': ' between the wifi IP and Port number can somebody help to revert the changes I have made or make this work.
Thanks!
Open phpmyadmin or another mysql db manager
Browse your website's wp_options table.
You will see 2 related rows there called "siteurl", and "home".
Fix them to correct address.
That's all.
You can replace or export data using Wp Migrate DB.
Easy to replace any url in your current database without lose any data or serialization issue.
Changing the Site URL multiple ways.
net::ERR_CONNECTION_REFUSED
Change your post 8888 to 80 in site & home url.
Its best to run of port 80 though instead of 8888.

mamp pro virtual host will only work on port 8888

I have a series of vhosts that work fine on global settings of port 80 set in mamp pro. One new vhost I created will not work though on this port. I type in my vhost in thew browser or even use the link provded and it appends a :8888 onto the link and says can't establish connection to server.
When I change that vhost port # to 8888 then it works.
The problem is the :8888 remains and is screwing up my url routing for navigating the site especially with a standard wordpress build, I cant get into my admin section bc wordpress donest understand the :8888.
Any ideas how to fix this issue with mamp pro?
First you need to change port to 80
Server->general Apache value to 80 then create vhost
in Host ->add new
Server name
ip/port you can add as *
then disk location
that it done !

How to not use apache port from site URL with acquia drupal

Acquia drupal always puts the apache port :8082 to the end of site url, e.g.: http://localhost:8082.
I have a custom site url:
http://somesite:8082
I want to access it just by http://somesite
How to make it work without :8082?
Any hint would be very much appreciated.
Thanks
Sorry, you're kind of out of luck. The only way to get that port to go away is to server on either port 80 (http) or 443 (https). Web browsers treat those as the default ports, hence, you don't have to specify. You need the port there so that the browser knows where to go to find Drupal. If you can't run the Acquia Drupal Apache server on port 80, you could optionally run a proxy on port 80 that redirects to the correct place. However that's probably more trouble than it's worth.
Basically, don't worry about it, whenever you move your site off of your localhost onto a live server, you'll be able to run in on port 80 and that pesky port number won't be there anymore.

Resources