Wordpress localhost redirect - php

I recently moved an WordPress installation from server to my computer. On server it was running on port 80 but on my localhost I use 8080. When I try to access http://localhost:8080/wordpress it redirects me to http://localhost/wordpress.
I found a setting named siteurl in the options table and changed that but it did not do the trick. Anyone know where i can change this setting?

I dont use WordPress, but for what I know about WP is that you have a Config part (web) that you can change that type of settings. So, maybe is the database that you have to search where is that port and change it to 8080, because it is forcing it to use 80.
Here you go with a little search in google: Solution

if you are going to install Wordpress on your local computer then you need to change website-name to your localhost-path before importing sql file. otherwise it will redirect you to your website

The problem was more complexed than I imagined. I went through a lot of "move wordpress site" tutorials until it worked. Guess replacing all the links in database from domain name to localhost/wordpress did the work.

Related

WordPress on localhost can not be reached

I am using wamp to host a local version of my WordPress site. It was working gine until I restarted my computer and now I get this error.
This site can’t be reached
The connection was reset.
I tried restarting the services, and creating a new copy of this site under I different folder and the error still persists. My other non WordPress sites work fine.
Not sure what is going on so any suggestions would be great.
If you've moved your site to a different folder then the root has probably changed. Go to Preferences > Web Server and click on the folder next to Document Root, and navigate to the root directory that has your site then click on Select.
Also, make sure Apache and MySQL servers are running. Hope this helps.
You might have changed your port number from default port number.
Open with the port number that apache server is listening.
In your browser give "localhost:portNumber/WordPress"
Example: localhost:80/wordpress or
localhost:8080/wordpress or
localhost:8081/wordpress.
You Can check your port number from apache part config file.
Watch this video: https://www.youtube.com/watch?v=blmOFr8uZQI
I think its plugin issue from the codebase. Just rename the plugins name one by one in (wp-content/plugin/) folder and check.

Wamp server not showing localhost\website

I am trying to connect to wampserver. I have all setting done and wampserver is online. but when I try to connect to the folder then the url of site is loading as http://website instead of http://localhost:8899/website. because of this i am getting website not found error. How can I solve this?
Maybe you have an .htaccess in that folder or maybe your site is configured to redirect you to http://website, you should check the .htaccess or the site configuration file.
Every project you add to your main folder will open this way if you try to open via WAMP's panel in http://localhost/ , unfortunately.
I think this can be configured, but I don't know how to do so.
You can type the address manually as http://localhost/website. This should work.
Another solution is to make aliases, that'd work.

How to make xampp local wordpress installation public?

I installed XAMPP and WordPress along it. Created a database and installed the platform all along. Opened the needed ports (8080) so it's publicly accessible also before that. It works.
The problem is that the I can't reach http://IPaddress/wordpress/wp-admin from an outside computer.
I can reach http://IPaddress:8080/xampp/, but thats the only page it will allow me to open. For the rest I get timeouts, unreachable.
I'd appreciate if someone tells me how do I make the C:\xampp\htdocs\wordpress folder accessible publicly just like the /xampp one. Do I need to set some special permissions?
I recommend you next:
You should move Wordpress folder to htdocs.
Change apache port to 80, not 8080.
Open 80 port in your router to your host, example: 192.168.1.32
Change wordpress folder permissions.
Try http://IPADDRESS/
Anyway your solution is also in google.

Configure WHM Main IP to redirect to an specific account

I'm working on a project that has a single domain on a WHM Server. So we access through an IP to the Wordpress Installation that is on the only account (Cpanel): server/~account1/.
To be more clear, when we access to http://xxx.xxx.xxx/ we were actually accesing to http://xxx.xxx.xxx/~account1/.
After a server migration, however, this stopped working, so we are trying to make it work again. I'm trying to figure out what is wrong here.
Now when we browse to http://xxx.xxx.xxx/ we get the default webpage http://xxx.xxx.xxx/cgi-sys/defaultwebpage.cgi, but we can access the real directory by typing the /~account1/.
Can you help me to figure where to start looking or what could be the problem? Could i fix it by editing the httpd.conf?
I'm a programmer but not an expert of server configuration so I'm kinda lost.
httpd.conf would be the place to start.
You are looking to check the Virtual Hosts setings, often in the above file or conf/extra/httpd-vhosts.conf
http://httpd.apache.org/docs/2.2/vhosts/examples.html
If all else fails, try running the httpd.conf rebuild script as root:
/scripts/rebuildhttpdconf

Mamp and WordPress url change

I have a WordPress installation on my localhost: http://localhost:8888
I've uploaded the wp files on my FTP, and I've imported the DB. I can't use a new installation because I've edited some core files.
I also edited the table wp_options on my site, and edited the fields, siteurl and home so those two fields contained the site URL, changing them from "localhost:8888" to my new URL.
The problem now is when I go to my URL and try to load the website it will redirect me to http://THE_NEW_WEBSITE:8888.
I need that port removed. How can I do that?
you don't need that port removed, you just haven't changed the base url of the wordpress install everywhere you needed to. check your .htaccess file in the directory where you installed wordpress. see if there is anything in there with the old url left over, ie. the url with port 8888. if it's wrong, replace it with the new one.
otherwise, try grep-ing through the directory for :8888 and see if that string exists anywhere its not supposed to.
use wingrep if you're on windows: http://www.wingrep.com/
Here's a tutorial on grep if you're not familiar: http://www.unixref.com/guides/grepGuide.html
I had same issue. All I had to do was to use another browser. The problem was cache.
Solved before explorting the database change the url from the wordpress admin page and after that export the DB
I was having the same problem. I was running MAMP with ports 8888 and 8889 and installed Wordpress. When it asked for my port put in 8888.
What happened was it hardcoded the URL location to be localhost:8888/wordpress, so when I wanted to change the port to 80, it would redirect me there from localhost/wordpress
What I did was run MAMP with the original ports, 8888 and 8889, which allowed me to access the dashboard, from there I went to the "Settings" tab and change the "WordPress Address" and the "Site Address".
When I clicked "Save Changes" it brought up an error page, presumably because now it was being forwarded from localhost:8888/wordpress to localhost/wordpress, but when I switched the port back to 80 on MAMP and went to localhost/wordpress I was able to access everything again.
I had the same issue when i was trying to run a WordPress site using XAMPP which was originally created and run by a mac user using MAMP.
I fixed the issue by removing the :8888 part from siteurl and home properties in the wp_options table in the database and clearing the browsing data (Cookies and other site data / Cached images and files) of the browser.

Categories