1

I have AMPPS installed on Windows 10. I'm using port 8080 for Apache. I installed Wordpress through AMPPS and I'm able to access the dashboard and other pages, just not the homepage.

Both siteurl and home are set to http://localhost:8080/wordpress/wp in the database in phpmyadmin. The dashboard loads correctly at http://localhost:8080/wordpress/wp/wp-admin/, and other pages like http://localhost:8080/wordpress/wp/home/ load. But trying to load http://localhost:8080/wordpress/wp/ redirects to http://localhost/wordpress/wp/ and results in a 404.

J Quest
  • 593
  • 2
  • 17
Seth DeHaan
  • 73
  • 1
  • 6

1 Answers1

0

Use this inside your config file;

define('WP_HOME','http://localhost:8080/wordpress/wp');
define('WP_SITEURL','http://localhost:8080/wordpress/wp');

This will force WordPress to use that.

J Quest
  • 593
  • 2
  • 17
  • What is the value inside table `wp_options` column `option_value` ? – J Quest Jun 21 '18 at 20:35
  • Can you edit your functions.php inside your theme folder, and add `remove_filter('template_redirect','redirect_canonical');` for removing redirection. Because your wp-admin isn't redirecting I think it's inside your theme somewhere. – J Quest Jun 21 '18 at 20:40
  • That doesn't seem to work either. I tried switching to a few different themes too and had the same issue with all of them. – Seth DeHaan Jun 21 '18 at 21:23
  • What is your .htaccess? – J Quest Jun 21 '18 at 21:24
  • Here's the full text of it: # BEGIN WordPress RewriteEngine On RewriteBase /wordpress/wp/ RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /wordpress/wp/index.php [L] # END WordPress – Seth DeHaan Jun 21 '18 at 21:26