Solved WordPress Cutover Main Page Works, but Secondary Pages Do Not
-
@scottalanmiller said in WordPress Cutover Main Page Works, but Secondary Pages Do Not:
BANGING HEAD ON DESK
It's an Ubuntu-ism. On Fedora this is not needed. On Ubuntu you have to...
a2enmod rewrite
Yup, even for enabling PHP too...
-
@scottalanmiller said in WordPress Cutover Main Page Works, but Secondary Pages Do Not:
BANGING HEAD ON DESK
It's an Ubuntu-ism. On Fedora this is not needed. On Ubuntu you have to...
a2enmod rewrite
What's that?
-
You should look at the mod_rewrite rules. It's pretty obvious that the problem lies with the url rewriting.
Either the reverse proxy is wrongly configured or the apache webserver.
Actually it's probably best to follow the entire chain. Remember that you can active the rewrite modules logging as well.
A small thing like using a different directory will make the rewrite rules invalid.
-
@Obsolesce said in WordPress Cutover Main Page Works, but Secondary Pages Do Not:
@scottalanmiller said in WordPress Cutover Main Page Works, but Secondary Pages Do Not:
BANGING HEAD ON DESK
It's an Ubuntu-ism. On Fedora this is not needed. On Ubuntu you have to...
a2enmod rewrite
What's that?
That's a script that enables the mod_rewrite module in apache - apache2 enable module.
-
@Obsolesce said in WordPress Cutover Main Page Works, but Secondary Pages Do Not:
@scottalanmiller said in WordPress Cutover Main Page Works, but Secondary Pages Do Not:
BANGING HEAD ON DESK
It's an Ubuntu-ism. On Fedora this is not needed. On Ubuntu you have to...
a2enmod rewrite
What's that?
It's what enables rewrite to work at all.
-
Ok ensure .htaccess file is present and has good permission
try chmod something open to the docroot and chown like www-data:www-data for whole docroot just for test
Use wordpress cli to change the site URL home and URL address to the correct values after site move
define( 'WP_HOME', 'http://example.com' );
define( 'WP_SITEURL', 'http://example.com' )You can use the portable phar
https://gist.github.com/pcsontos/122fceb3d6e6e43da98d
wp-cli.phar option update home 'http://example.com'
wp-cli.phar option update siteurl 'http://example.com' -
@scottalanmiller said in WordPress Cutover Main Page Works, but Secondary Pages Do Not:
BANGING HEAD ON DESK
It's an Ubuntu-ism. On Fedora this is not needed. On Ubuntu you have to...
a2enmod rewrite
Ah, so the problem was just that the mod_rewrite module wasn't enabled in Apache.
It's the LoadModule entries in the httpd.conf file that tells Apache which modules to load. Using a2enmod is mostly for convenience.
-
@scottalanmiller said in WordPress Cutover Main Page Works, but Secondary Pages Do Not:
BANGING HEAD ON DESK
It's an Ubuntu-ism. On Fedora this is not needed. On Ubuntu you have to...
a2enmod rewrite
Gotta love those Ubuntu-isms that exist just to slow us down. You all know how much I like Ubuntu.
-
@Pete-S said in WordPress Cutover Main Page Works, but Secondary Pages Do Not:
@scottalanmiller said in WordPress Cutover Main Page Works, but Secondary Pages Do Not:
BANGING HEAD ON DESK
It's an Ubuntu-ism. On Fedora this is not needed. On Ubuntu you have to...
a2enmod rewrite
Ah, so the problem was just that the mod_rewrite module wasn't enabled in Apache.
It's the LoadModule entries in the httpd.conf file that tells Apache which modules to load. Using a2enmod is mostly for convenience.
Right, coming from doing this in Fedora regularly, it didn't occur to me that there was a manual step as Fedora defaults to turning that on.
-
@travisdh1 said in WordPress Cutover Main Page Works, but Secondary Pages Do Not:
@scottalanmiller said in WordPress Cutover Main Page Works, but Secondary Pages Do Not:
BANGING HEAD ON DESK
It's an Ubuntu-ism. On Fedora this is not needed. On Ubuntu you have to...
a2enmod rewrite
Gotta love those Ubuntu-isms that exist just to slow us down. You all know how much I like Ubuntu.
We know but hey I know it
-
Well let's talk about fedora and updating killing a laptop lol....