Enjoy unlimited access to all forum features for FREE! Optional upgrade available for extra perks.
Daily Diamond

Need htaccess help please....

Status
Not open for further replies.

domain_investor

DNF Member
Legacy Exclusive Member
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:

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?
 
Domain Summit 2024

POLiSH

Level 8
Legacy Exclusive Member
Joined
Aug 25, 2004
Messages
2,042
Reaction score
0
I would leave this as it stands. Check your results in about a month to see how they are looking and then we can from there.
 
Status
Not open for further replies.

The Rule #1

Do not insult any other member. Be polite and do business. Thank you!

Sedo - it.com Premiums

IT.com

Premium Members

AucDom
UKBackorder
Be a Squirrel
MariaBuy

Our Mods' Businesses

UrlPick.com

*the exceptional businesses of our esteemed moderators

Top Bottom