Permalinks from subdirectory return 404 unless using Plain
-
I have installed wordpress in a subfolder years ago for an existing site
Checking on various support topics for this they seem to indicate that you should copy the index.php and .htaccess files into the root of your website then that will bounce it back up to the subdirectory based on the config, however that would overwrite the sites existing index page and different htaccess file so its not a viable solutionWhen i try setting any permalink setting other than plain i get 404 errors, when its set to Plain it works correctly
Plain produces a blank .htaccess fileSetting to post-name produces
# BEGIN WordPress
# The directives (lines) between "BEGIN WordPress" and "END WordPress" are
# dynamically generated, and should only be modified via WordPress filters.
# Any changes to the directives between these markers will be overwritten.
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteBase /articles/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /articles/index.php [L]
</IfModule>
# END WordPressI’ve checked back and the htaccess file looks correct based on this tutorial
https://www.wpbeginner.com/wp-tutorials/how-to-install-wordpress-in-a-subdirectory-step-by-step/comment-page-2/#comments
I’ve tried temporarily commenting out the RewriteRule .* – [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] section as that was the only difference but it did not help
Is there some config i need to change in apache to help this work?
Some sections from Site infoVersion 6.8.1
Home URL https://rmu.no-ip.com/articles
Site URL https://rmu.no-ip.com/articles
Permalink structure No permalink structure set
Plugins
Akismet Anti-spam: Spam Protection Version 5.4 by Automattic - Anti-spam Team | Auto-updates enabled
Enlighter - Customizable Syntax Highlighter Version 4.6.1 by Andi Dittrich | Auto-updates enabled
ImageMagick Engine Version 1.7.13 by Orangelab | Auto-updates enabled
Independent Analytics Version 2.11.9 by Independent Analytics | Auto-updates enabled
UpdraftPlus - Backup/Restore Version 1.25.6 by TeamUpdraft, DavidAnderson | Auto-updates enabled
Server
Server architecture Linux 6.8.0-63-generic x86_64
Web server Apache/2.4.58 (Ubuntu)
PHP version 8.3.6 (Supports 64bit values)
PHP SAPI apache2handler
Is the Imagick library available? Yes
Are pretty permalinks supported? Yes
.htaccess rules Your .htaccess file contains only core WordPress features.
robots.txt Your site is using the dynamic robots.txt file which is generated by WordPress.I currently have it set to Plain to keep the site working
The page I need help with: [log in to see the link]
The topic ‘Permalinks from subdirectory return 404 unless using Plain’ is closed to new replies.
