htaccess, custom mod_rewrite, and weird URL construction issue
-
Still battling this one and still seeing posts by others that aren’t finding answers either. :\
The sites I make using Multisite come out with this URL structure: https://www.mymythos.orgmymythos_orgsidian/
Everyone (DreamHost staff and WP Forum Mods) seems to say that it must be something to do with the htaccess and something called the custom mod_rewrite. But alas, I’m not much of a coder and my research isn’t yielding much useful info for me.
But here is my htaccess at the moment:
# BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] # uploaded files RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [L] # add a trailing slash to /wp-admin RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L] RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^ - [L] RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L] RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L] RewriteRule . index.php [L] </IfModule> # END WordPress
I was told before that this block of code looks fine, but I thought I’d post again for others to take a double look.
Hopefully if we can make a breakthrough with one case of this, then the group of others experiencing it should be able to use this knowledge as well.
- The topic ‘htaccess, custom mod_rewrite, and weird URL construction issue’ is closed to new replies.