Permalink Problems
-
Hello,
I recently set up a new installation of WordPress on a new web host. I set it up under the directory domain.com/wordpress/ (domain.com being a placeholder) with the intention of setting it so that viewers would just go to domain.com for to see it (putting the install in its own folder was to simplify folders/files in case I needed to install anything else on that server). I also attempted to implement https/SSL. Things work fine if I leave it set to the plain permalink setting, but do not work if I set it to any other setting. I am guessing that my .htaccess may have some conflicts in it that are causing this. The .htaccess file is below; some sections were commented out in an attempt to see if those may be the problem. Domain.com again is used as a placeholder. If anyone can identify what the issue may be, I would be very appreciative. Thanks!# BEGIN WordPress # The directives (lines) between <code>BEGIN WordPress</code> and <code>END WordPress</code> are # dynamically generated, and should only be modified via WordPress filters. # Any changes to the directives between these markers will be overwritten. # END WordPress <IfModule mod_rewrite.c> RewriteEngine on RewriteCond %{HTTP_HOST} ^(www.)?domain.com$ RewriteCond %{REQUEST_URI} !^/wordpress/ RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d # RewriteCond %{REQUEST_URI} !^/\.well-known/acme-challenge/[0-9a-zA-Z_-]+$ # RewriteCond %{REQUEST_URI} !^/\.well-known/cpanel-dcv/[0-9a-zA-Z_-]+$ # RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/(?:\ Ballot169)? # RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$ RewriteRule ^(.*)$ /wordpress/$1 RewriteCond %{HTTP_HOST} ^(www.)?domain.com$ RewriteCond %{REQUEST_URI} !^/\.well-known/acme-challenge/[0-9a-zA-Z_-]+$ RewriteCond %{REQUEST_URI} !^/\.well-known/cpanel-dcv/[0-9a-zA-Z_-]+$ RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/(?:\ Ballot169)? RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$ RewriteRule ^(/)?$ wordpress/index.php [L] </IfModule> # Will this fix JSON errors???? Blease # <IfModule mod_rewrite.c> # RewriteEngine on # RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC] # RewriteCond %{REQUEST_URI} !^/\.well-known/acme-challenge/[0-9a-zA-Z_-]+$ # RewriteCond %{REQUEST_URI} !^/\.well-known/cpanel-dcv/[0-9a-zA-Z_-]+$ # RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/(?:\ Ballot169)? # RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$ # RewriteRule ^(.*)$ https://%1/$1 [R=301,L] # </IfModule> # Attempt at fixing HTTPS <IfModule mod_rewrite.c> # RewriteEngine On # RewriteCond %{HTTPS} off # RewriteCond %{REQUEST_URI} !^/\.well-known/acme-challenge/[0-9a-zA-Z_-]+$ # RewriteCond %{REQUEST_URI} !^/\.well-known/cpanel-dcv/[0-9a-zA-Z_-]+$ # RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/(?:\ Ballot169)? # RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$ RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] </IfModule>
- The topic ‘Permalink Problems’ is closed to new replies.