WordPress on localhost{:port number} - wordpress

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

Related

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.

301 redirect error with wordpress and apache

I've recently migrated a database from windows using bitnami (apache and wordpress) to a linux server (apache and wordpress). I'm able to access the website wp-admin, but every time I try to access the main site it repeatedly returns 301 errors.
I've tried disabling the .htaccess file (deleting, commenting everything out), but it still gets directed. I've disabled all plugins. I've looked into the themes I'm using but they don't have redirect url's like I've seen in other posts.
I'm wondering if the issue might be in how bitnami structures itself. the main documents are stored in website/wordpress/htdocs, whereas linux wordpress seems to store it directly in wordpress.
I've set sites-enabled home directory to
sitelocation/wordpress/htdocs
I've also set the wordpress address and site address to
http://website.com:80
What do I need to do to prevent the redirects, or set it up to work correctly?
if you haven't change your Site URL then.
Please change the Site URL and Home URL from database in wp_option table.
You need to mention new url in both section..
I had a trailing / on my siteurl which led to it not working. After removing that it worked.

"www" issue on WordPress site

I just starting with WordPress, I am using Digital Ocean and a domain. I went to WordPress setting and added "www" to website name as it was naked before, the site stopped working and shows nothing now. How to fix this?
After changing the site URL and home URL to www, you need to add ServerName as www.yourdomainname.com
Assuming you have a single host.
sudo nano /etc/apache2/sites-available/000-default.conf
Change the file as below.
ServerName www.yourdomain.com
ServerAlias yourdomain.com
Now you need to have 2 A records with hostnames # and www pointing to your IP in your DNS.
Hope this will resolve the issue.
Who did you buy your domain through? You should go to your settings there and change your DNS settings to do a www redirect for you. Then just make sure the box is listening for the site name with the www prefix.
Usually changing the domain name for a site isn't quite this simple, although adding in 'www' shouldn't cause too much grief I'd think.
However, to get things back up and running, you'll want to get into your site's database (via PHPMyAdmin or something like that) and open the wp_options table. In the first page of that table, you should see an entry for site_url, which you can edit and remove the 'www'. That should at least get you back up and running. Then we can sort out what the other issue is with the subdomain.

cant access wordpress directory in wamp server www folder from localhost

I have a 32bit Win7.
I am trying to set Wordpress 4.1 up to work on Wampserver 2.5.
I copied the extracted wordpress files into my own folder within the c:wamp/www folder. But after going to the localhost page, clicking on my folder under 'Your Projects' opens to a 'This Page Is Not Available' page, which cites either non-connectivity (not the case), or misconfigured network, or unresponsive DNS network or firewall issue.
I tried looking this up but nothing. Pls let me know how to fix this.
Alternatively I tried localhost/myfoldername in my browser, and the Wordpress installation begun with language selection and then the 'lets go' button, then the form to be filled out.
Can I proceed this way or would it involve issues later
Check the URL it tries to redirect you, probably gives you just "wordpress". Not sure if it's a bug in WampServer index.php or something that needs to be configured, just type http://localhost/wordpress (or how your wp folder is named) to your browser?
I had a bit similar problem. It can be by using bad folder to enter your page.
1) You have only wordpress or anything else on your server? If the other pages are ok, i will try jylipaa's option. If it doesn't try to change localhost for 127.0.0.1:8080 or 80 - that port is standard for wamp, xampp, or vertrigo.
2) All pages doing it? This question can be rather non-relating but do you use skype? IF yes, it often happened that skype roguely take port 8080 for himself and don't let you know that. Try to configure your wamp to another port and use http://localhost:81/ for your instalation. That was option i tried and now everything is ok.
Hope this will help.

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!

Resources