Kryptronic Software Support Forum

You are viewing this forum as a guest. Login to an existing account, or create a new account, to reply to topics and to create new topics.

#1 08-22-2009 09:50:45

OutcastGirls
Member
From: New York, NY
Registered: 07-16-2009
Posts: 219

Issues with .htaccess for WordPress

Hi, I hope someone will help me with this.

I installed WordPress in a separate MySQL directory in my hosting. I will use it to create a blog as one of my SEO strategies.

The application was successfully installed but when I clicked on the URL pointing to my blog - wwwoutcastgirls.com/blog - I receive the following error message: "The page isn't redirecting properly. Firefox has detected that the server is redirecting the request for this address in a way that will never complete."

When I temporally disabled (by renaming it) the .htaccess, the blog was working. When I activated it again, I got the same error message when accessing the blog.

So this tells me that the issue is with the .htaccess file.

This is what I currently have in my .htaccess:

Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^outcastgirls.com$ [NC]
RewriteRule ^(.*)$ http://www.outcastgirls.com/$1 [L,R=301]
RewriteRule ^(.*)-(.*)/(.*)\.html index.php?app=$1&ns=$2&ref=$3 [L,PT]

     
My question is, what changes can I make in .htaccess (or anywhere else) so both wwwoutcastgirls.com and wwwoutcastgirls.com/blog will be redirecting properly.

     

Please, help. Thank you kindly!

Last edited by OutcastGirls (08-22-2009 11:57:16)

Offline

 

#2 08-22-2009 10:14:46

dh783
Member
From: Avondale, Arizona
Registered: 04-06-2005
Posts: 6233
Website

Re: Issues with .htaccess for WordPress

If your blog is in a directory named blog with in the root directory then why would you need a rewrite rule to redirect it back to itself saying that you get to the blog by url_path/blog?

John

Last edited by dh783 (08-22-2009 10:15:42)

Offline

 

#3 08-22-2009 11:56:51

OutcastGirls
Member
From: New York, NY
Registered: 07-16-2009
Posts: 219

Re: Issues with .htaccess for WordPress

I already know that isn't working. I'll make it easier and remove it from my post so people would not get confused. That being said, is there a solution to this problem as described above?

Last edited by OutcastGirls (08-22-2009 12:01:31)

Offline

 

#4 08-22-2009 13:22:14

dh783
Member
From: Avondale, Arizona
Registered: 04-06-2005
Posts: 6233
Website

Re: Issues with .htaccess for WordPress

It is still unclear (to me at least) how your trying to get to your blog? If the the url to the blog is www. outcastgirls/blog and you have this rewrite rule

Code:

RewriteRule ^(.*)$ http://www.outcastgirls.com/$1 [L,R=301]

then it come in as www. outcastgirls/blog and is redirected to www. outcastgirls/blog (as well as any other url),  just a little redundant to me.

John

Offline

 

#5 08-22-2009 14:10:10

OutcastGirls
Member
From: New York, NY
Registered: 07-16-2009
Posts: 219

Re: Issues with .htaccess for WordPress

Well, that's what I am trying to figure out. I don't get it either.

As I said, when I click on wwwoutcastgirls.com/blog I get an error message.

When I disable the .htaccess the link to my blog works.  But if I do that then I can't redirect the non-www to the www.

Offline

 

#6 08-22-2009 14:22:02

dh783
Member
From: Avondale, Arizona
Registered: 04-06-2005
Posts: 6233
Website

Re: Issues with .htaccess for WordPress

At the moment I can't get to your site at all.

John

Offline

 

#7 08-22-2009 16:49:30

OutcastGirls
Member
From: New York, NY
Registered: 07-16-2009
Posts: 219

Re: Issues with .htaccess for WordPress

I've finally installed WordPress, but to accomplish that I had to create a subdomain in GoDaddy.

Now I have blog.outcastgirls.com but I can't redirect it to wwwblog.outcastgirls.com.

Is there a different 301 redirect code used specifically for subdomains? I tried the following rule but it did not work:

RewriteCond %{HTTP_HOST} ^blog.outcastgirls.com$ [NC]
RewriteRule ^(.*)$ http://www.blog.outcastgirls.com/$1 [L,R=301]

Is there an error in this interpretation? Has anyone ran into a similar issue? Thanks.

Last edited by OutcastGirls (08-23-2009 01:07:15)

Offline

 

Board footer