htaccess and redirects
-
Currently, I’m running into an issue where trailing slashes are only handled and redirected properly when I’m logged into the site as an admin.
Example:
http://www.site.com/example
will automatically redirect to
http://www.site.com/example/When logged in. The latter url is what I’m shooting for.
However, when viewing the site normally, both http://www.site.com/example and http://www.site.com/example/ is accessible and does not redirect.
What needs to be modified within htaccess to correct this? Thank you.
My htaccess file currently reads as follows:
# BEGIN WordPress
# WPhtc: Begin Custom htaccess
php_value memory_limit 96M
# WPhtc: End Custom htaccess# WPhtC: Disable ServerSignature on generated error pages
ServerSignature Off# WPhtC: Protect WP-config.php
<files wp-config.php>
order allow,deny
deny from all
</files># WPhtC: Protect .htaccess file
<files ~ “^.*\.([Hh][Tt][Aa])”>
order allow,deny
deny from all
</files><IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
The topic ‘htaccess and redirects’ is closed to new replies.