How to make url canonization with Wordpress
- SEO |
Need your help. I was trying to make url canonization but it doesn't work. I tried this one:
Options +Indexes Options +FollowSymLinks RewriteEngine on RewriteCond %{HTTP_HOST} ^example\.com RewriteRule ^(.*)$ http://www.example.com/$1 [R=permanent,L] RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_URI} !(.*)/$ RewriteRule ^(.*)$ http://www.example.com/$1/ [L,R=301] |
RewriteEngine on RewriteCond %(HTTP_HOST) ^site.com RewriteRule (.*) http://www.site.com/$1 [R=301,L] |
# BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> # END WordPress |
-
fanatic123 -
Thanks - 1 reply
{{ DiscussionBoard.errors[2724858].message }}-
Jesus Carrera -
[ 1 ] Thanks
{{ DiscussionBoard.errors[2725518].message }} -
-