- Joined
- Aug 16, 2005
- Messages
- 346
- Reaction score
- 1
I've got a website I'm putting together that I think needs some htaccess redirects. It's a Wordpress site and due to various plugins, it's causing my URLs to do some funny things.
It starts out with:
Once the user does something on the front page, it turns into:
Both MyDomain.com and MyDomain.com/home show the same page. I'm worried about SEO ranking and dup content.
Additionally, when they page through various lists I have on it, they look like these:
Not everything adds the "home" into the URL, but the main part of the site does.
So, I'm wondering if there is a way to make it so the "home" is taken out of the url with htaccess. I really don't know much about it. Following is my current htaccess. The first part is to make sure that anyone that does not key in the www, gets forced to www, for SEO purposes. The second half was created by Wordpress for "pretty utl permalinks"
Anything I can do? Or just leave it all alone?
It starts out with:
Code:
http://www.MyDomain.com
Once the user does something on the front page, it turns into:
Code:
http://www.MyDomain.com/home
Both MyDomain.com and MyDomain.com/home show the same page. I'm worried about SEO ranking and dup content.
Additionally, when they page through various lists I have on it, they look like these:
Code:
Not everything adds the "home" into the URL, but the main part of the site does.
So, I'm wondering if there is a way to make it so the "home" is taken out of the url with htaccess. I really don't know much about it. Following is my current htaccess. The first part is to make sure that anyone that does not key in the www, gets forced to www, for SEO purposes. The second half was created by Wordpress for "pretty utl permalinks"
Code:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} !^www.illegalimmigration.us$ [NC]
RewriteRule ^(.*)$ http://www.illegalimmigration.us/$1 [L,R=301]
</IfModule>
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
Anything I can do? Or just leave it all alone?