/webmasters/community?hl=en
/webmasters/community?hl=en
7/24/13
Original Poster
YourAdrenalineFix

Suddenly Experiencing Trouble With .htaccess But Hosting Company Says They Haven't Changed Anythig

Howdy Gang,

It's been a little while since I've been around but I get the feeling many of you here will remember me.

In the past (~1 - 1.5 years ago) WebAdo (Christina) joined me in a hangout and very patiently helped me get my .htaccess setup optimally so It didn't appear that I had duplicate pages, as well as redirecting from a non hyphenated domain or any of my domain versions (Only 2) redirected to a www version and all was well up until one day when I walked into my office, sat down and suddenly couldn't access my classifieds subdomain (Because I suddenly kept getting redirected to my main site's home page).

This happened overnite without ANY coding changes on my end so I contacted my hosting company (A Quality Host: In Motion Hosting) but even after chatting with 2 different support techs they both swear In Motion hasn't changed anything but I cry foul on that because suddenly without any input from me I can't access my subdomain.

After chatting with IM Hosting, the only advice they can provide is to comment the 2 lines I have commented out, out which I've done and now the classifieds is accessible, but I've also noticed that my non-hyphenated domain is no longer redirecting to the hyphenated and that's in addition to "who knows what else is not working properly about this".

I'd like to ask my friends among this forum if you guys wouldn't mind taking a look at the htaccess file linked below and offering any advice on the proper configuration of my htaccess so as to return it back to the way it was before I suddenly could no longer access my subdomain.

Remember, The 2 lines (18 & 19) that are commented out was a temp fix so as to be able to access the subdomain classifieds.your-adrenaline-fix.com

Here's my htacess (Viewable as text) http://youradrenalinefix.com/TestHTACCESS.txt

If you guys wouldn't mind taking a look at this and assisting me with returning this to an optimal setting, I'd be most appreciative and I thank you all once again!!

Google (and the contributors to the help forums) Rule!!

Stuart Kaufman
Community content may not be verified or up-to-date. Learn more.
All Replies (13)
7/24/13
Original Poster
YourAdrenalineFix
Hi Guys, I just NOW saw the attach a file link so I'm gonna take advantage of that and remove the file linked above. Oops...

This way if if / when I remove the file from the server (Link above) this article can still be of use to others in the future. ;)


Carminejg3
7/25/13
Carminejg3
what looks weird to me (not a rewrite pro) is whast the difference between line 22 and 23, looks like you are redirecting yourself back to the main domin

lines 21-23

RewriteCond %{HTTP_HOST} ^your\-adrenaline\-fix\.com$ [OR]
RewriteCond %{HTTP_HOST} ^www\.your\-adrenaline\-fix\.com$
RewriteRule ^index\.html$ "http\:\/\/www\.your\-adrenaline\-fix\.com\/" [R=301,L]


Try
RewriteCond %{HTTP_HOST} ^your\-adrenaline\-fix\.com$ [OR]
RewriteCond %{HTTP_HOST} ^www\.your\-adrenaline\-fix\.com$
RewriteRule ^index\.html$ "http\:\/\/www\.youradrenalinefix\.com\/" [R=301,L]

Also you need to pick a domain that you want to be your main site either  
http://youradrenalinefix.com or www.your-adrenaline-fix.com

then redirect using a permanent 301 to the one you are keeping. if you use cpanel, you can redirect the domain through there and check the wildcard option (redirect all pages to the main domain)

Also you need to figure out why classifieds one work on the one domain http://classifieds.your-adrenaline-fix.com you might need to add a new DNS record to point it to the http://classifieds.youradrenalinefix.com/ domain

hope this helps you out.

PS nice adsene implementation I like how they are there just not in your face...

boltsabre
7/25/13
boltsabre
This is very strange. Have you compared your current .htaccess file to a previous version (like from a backup) to ensure they are still identical?
Is it possible you or someone else changed something and forgot to revert the changes before your last update?
7/25/13
Original Poster
YourAdrenalineFix
Hi +BoltSabre, Yea... It's even stranger to me. 

Like I stated in my 1st post, this cropped up overnite and I contacted my hosting company but they swear it must be something I've done and I swear it's nothing I've done.

I haven't checked older B/U's but I can assure you nobody but me gets under the hood of the site (code wise) and I hadn't changed anything either but if I uncomment the 2 commented out lines, the classifieds is no longer accessible.

Hold On, Lemme Try Uncommenting These 2 Lines Again.

BRB
7/25/13
Original Poster
YourAdrenalineFix
Yep... Uncommenting those 2 lines makes the classifieds inaccessible.

Could it be conflicting problems between the htaccess in my root (shown above) and the htaccess of my classifieds? (attached to this post)
7/25/13
Original Poster
YourAdrenalineFix
One more thing. I can say with certainty that I could spot if any changes had been made as I have the memory of an elephant and it all looks exactly like I've seen it when it's working.
8/9/13
Original Poster
YourAdrenalineFix
Hi everyone,

I'm still stumped on this. If anyone wouldn't mind re-reading my 1st post I'd be most appreciative as I need to get this resolved ASAP because I believe Google and other Search Engines are seeing duplicate content (www and non www versions).

Thanks,

Stuart K
webado
8/10/13
webado
Has there been a change on yrou hosting lately>


Replace:
RewriteEngine on 

#RewriteCond %{http_host} !^www.your-adrenaline-fix.com$ [nc]
#RewriteRule ^(.*)$ http://www.your-adrenaline-fix.com/$1 [r=301,nc,L]

RewriteCond %{HTTP_HOST} ^your\-adrenaline\-fix\.com$ [OR]
RewriteCond %{HTTP_HOST} ^www\.your\-adrenaline\-fix\.com$
RewriteRule ^index\.html$ "http\:\/\/www\.your\-adrenaline\-fix\.com\/" [R=301,L]

with this:

RewriteEngine on 
RewriteBase / 


### re-direct index.html to root / ###
RewriteCond %{THE_REQUEST} ^.*\/index\.html\ HTTP/
RewriteRule ^(.*)index\.html$ /$1 [R=301,L]


RewriteCond %{http_host} !^www.your-adrenaline-fix.com$ [nc]
RewriteRule ^(.*)$ http://www.your-adrenaline-fix.com/$1 [r=301,nc,L] 


8/11/13
Original Poster
YourAdrenalineFix
Hi Christina, Thanks so much for chiming in.

I tried the code you provided and it seems the redirects are back to functional so hopefully it won't appear as me pushing duplicate content anymore. However, the classifieds is now inaccessible. (Via 3rd button down "Moto Classifieds" in LH Navigation, nor by any of the links within the box in the RH column with a heading of Dirt Bikes For Sale On Our Classifieds")
webado
8/11/13
webado
Gaad.... your subdomain is not segregated.... 

OK change again the .htaccess file.

Replace this:
RewriteCond %{http_host} !^www.your-adrenaline-fix.com$ [nc]
RewriteRule ^(.*)$ http://www.your-adrenaline-fix.com/$1 [r=301,nc,L]



with this:

RewriteCond %{http_host} ^your-adrenaline-fix.com$ [nc]
RewriteRule ^(.*)$ http://www.your-adrenaline-fix.com/$1 [r=301,nc,L]





8/11/13
Original Poster
YourAdrenalineFix
Webado, You're Amazing!! Thank You So Much For Your Help!!
webado
8/12/13
webado
You're welcome :) I take it it worked ?
8/14/13
Original Poster
YourAdrenalineFix
Hi Christina, Yes, It works beautifully!! Thank You So Much!!!
Were these replies helpful?
How can we improve them?
 
This question is locked and replying has been disabled. Still have questions? Ask the Help Community.

Badges

Some community members might have badges that indicate their identity or level of participation in a community.

 
Google Employee — Google product team members and community managers
 
Community Specialist — Google partners who help ensure the quality of community content
 
Platinum Product Expert — Community members with advanced product knowledge who help other Google users and Product Experts
 
Gold Product Expert — Community members with in-depth product knowledge who help other Google users by answering questions
 
Silver Product Expert — Community members with intermediate product knowledge who help other Google users by answering questions
 
Product Expert Alumni — Former Product Experts who are no longer members of the program
Community content may not be verified or up-to-date. Learn more.

Levels

Member levels indicate a user's level of participation in a forum. The greater the participation, the higher the level. Everyone starts at level 1 and can rise to level 10. These activities can increase your level in a forum:

  • Post an answer.
  • Having your answer selected as the best answer.
  • Having your post rated as helpful.
  • Vote up a post.
  • Correctly mark a topic or post as abuse.

Having a post marked and removed as abuse will slow a user's advance in levels.

View profile in forum?

To view this member's profile, you need to leave the current Help page.

Report abuse in forum?

This comment originated in the Google Product Forum. To report abuse, you need to leave the current Help page.

Reply in forum?

This comment originated in the Google Product Forum. To reply, you need to leave the current Help page.

false
Search
Clear search
Close search
Google apps
Main menu
Search Help Center
true
83844
false