Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Coding Forum


You are currently viewing our Coding Forum as a guest. Please register to participate.
Login



Reply
Redirecting https:// to http://www. using mod_rewrite
Old 07-03-2010, 07:19 AM Redirecting https:// to http://www. using mod_rewrite
zomex's Avatar
Ultra Talker

Posts: 308
Name: Jack
Trades: 0
Hello everyone,

After a few days my website is showing up in Google. The problem is that some of my pages are indexed as https:// and others as http:// I would like all of my pages to be indexed as http:// (apart from checkout pages etc) so I need to fix my .htaccess file.

Does anyone know the correct code? At the moment my website redirects from www. to http://www. but not from https:// Here is my current code:

Code:
ErrorDocument 404 /error/404.php

RewriteEngine on
rewritecond %{http_host} ^zomex.com [nc]
rewriterule ^(.*)$ http://www.zomex.com/$1 [r=301,nc]
Thanks everyone,
Jack
__________________

Please login or register to view this content. Registration is FREE
- Hosting over 200 websites!


Please login or register to view this content. Registration is FREE
from just $3.99/month

Please login or register to view this content. Registration is FREE
- 20% Lifetime Commissions!
Please login or register to view this content. Registration is FREE
zomex is offline
Reply With Quote
View Public Profile Visit zomex's homepage!
 
 
Register now for full access!
Old 07-03-2010, 07:26 AM Re: Redirecting https:// to http://www. using mod_rewrite
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,371
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Using htaccess will affect ALL https pages including your checkout page.

Put a robots.txt file in the root of the https site (assuming you have it setup that way)
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Reply     « Reply to Redirecting https:// to http://www. using mod_rewrite
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.30720 seconds with 12 queries