Dynadot Black Friday and Cyber Monday 2026: save more on domains. See our sales.

Htaccess question

NamecheapNamecheap
Namecheap AuctionsNamecheap Auctions
Namecheap AuctionsNamecheap Auctions
Watch
Impact
1,135
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:

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:
http://www.MyDomain.com/home/comment-page-1/#comments
http://www.MyDomain.com/home/comment-page-2/#comments

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?
 
0
Close
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
Appraise.net

We're social

Escrow.com
Spaceship
Domain Recover
CryptoExchange.com

NamePros updates

New: watch any domain
You can now watch domains on NamePros. We check each one and notify you when something changes. Search for a domain and press Watch on...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back