Real Estate Forums

Coding HTML, ASP, PHP, JAVA MYSQL and more. All coding questions should be asked here.

Reply
 
Thread Tools Display Modes
Old 06-27-2007, 11:12 AM
Ryan Ward's Avatar
Ryan Ward Ryan Ward is offline
Uber Real Estate Webmaster
Recently blogged:
Dunwoody Open House
at my REW Blog. Claim your blog
 
Join Date: Oct 2006
Location: Alpharetta
Posts: 3,437
Ryan Ward is on a distinguished road
Default htaccess code help Please!

I need to try this again...My blog is located here: atlantarealestate-homesforsale.com/wordpress and here wwwDotatlantarealestate-homesforsale.com.

This is the code found in my htaccess file, the only thing missing are these little tiny square which get lost when I copy and paste the code. If they are important, I will save the code as an image and post that.


Code:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /wordpress/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /wordpress/index.php [L]
</IfModule>
# END WordPress
What do I need to do to this code that will make this show up only on the www?

Thanks for the help,

Ryan
__________________
Ryan Ward, REALTORŪ - Keller Williams Realty Consultants. (404) 630-3187
Atlanta Real Estate - My featured area is Alpharetta Real Estate and it is where I call home. Read my Atlanta Real Estate blog.

Last edited by Ryan Ward; 06-27-2007 at 11:14 AM. Reason: more info
Reply With Quote
Old 06-27-2007, 04:33 PM
langard langard is offline
Real Estate WebMaster
 
Join Date: Apr 2006
Posts: 208
langard is on a distinguished road
Default Re: htaccess code help Please!

The little tiny squares are Microsoft/ASCII/ANSI format characters. Copy and paste your code into a regular text editor, trim it (eliminate white space on the ends of the line breaks), if you see a square, search and replace it with '' (nothing), copy the result and paste it directly into your .htaccess file and upload it.

If that doesn't work, I'll help you from there...

Best of luck.
__________________
LanGard MicroDevelopers Oregon Real Estate Agent and Company Directory
Reply With Quote
Old 06-27-2007, 06:11 PM
Aaron Aaron is online now
Real Estate Webmasters Staff
 
Join Date: Jun 2005
Location: Nanaimo
Posts: 7,731
Aaron is on a distinguished road
Send a message via MSN to Aaron
Default Re: htaccess code help Please!

Are you trying to make it redirect the non-www to the www like it does here
http://atlantarealestategeorgia.com/ ?
__________________
Aaron
Programming Support
Real Estate Webmasters
Reply With Quote
Old 06-27-2007, 07:11 PM
langard langard is offline
Real Estate WebMaster
 
Join Date: Apr 2006
Posts: 208
langard is on a distinguished road
Default Re: htaccess code help Please!

So where's the .htaccess code Aaron? Just because your link works doesn't mean anybody understands HOW that's accomplished. What is that, a dry run?

alpharettaagent, try this to get everything on the same page to begin with:

Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^yourdomain\.com [NC]
RewriteRule ^(.*)$ http://www.yourdomain.com/$1 [L,R=301]

Obviously, you have to replace "yourdomain" with your own. If you have mistakes in your syntax (or you forgot to type in the full path on some of your internal links), everything will be automatically sent to the "www" version of your site and Google will ABSOLVE you of trying to scam them by putting up duplicate websites.
__________________
LanGard MicroDevelopers Oregon Real Estate Agent and Company Directory
Reply With Quote
Old 06-27-2007, 07:30 PM
Aaron Aaron is online now
Real Estate Webmasters Staff
 
Join Date: Jun 2005
Location: Nanaimo
Posts: 7,731
Aaron is on a distinguished road
Send a message via MSN to Aaron
Default Re: htaccess code help Please!

Quote:
What is that, a dry run?
Not sure - Just seeing if that is actually what he wanted to do

That's the code he probably wants - Thank you.
__________________
Aaron
Programming Support
Real Estate Webmasters
Reply With Quote
Old 06-27-2007, 08:36 PM
Ryan Ward's Avatar
Ryan Ward Ryan Ward is offline
Uber Real Estate Webmaster
Recently blogged:
Dunwoody Open House
at my REW Blog. Claim your blog
 
Join Date: Oct 2006
Location: Alpharetta
Posts: 3,437
Ryan Ward is on a distinguished road
Default Re: htaccess code help Please!

Well,

Thanks for the help guys, but, where do I put it. Do I replace something that is already there or do I add it.

If I add it, where? Top? Middle? Bottom?

Sorry, but, I am learning as I go here. All I know is that Big G has 2 version indexed and that aint good!

Aaron,

Yes, like your exampe.

langard,

replace the squares with quotation marks? Like this: " ?


Again,

Sorry guys.

This is the last think I need to do so that I can replace my posts back on my blog. I had to delete everything including the DB and move the blog somewhere else. I wish I would have noticed that it wasn't redirecting 3 months ago - I would have done it before I started.
__________________
Ryan Ward, REALTORŪ - Keller Williams Realty Consultants. (404) 630-3187
Atlanta Real Estate - My featured area is Alpharetta Real Estate and it is where I call home. Read my Atlanta Real Estate blog.
Reply With Quote
Old 06-28-2007, 05:09 AM
Ryan Ward's Avatar
Ryan Ward Ryan Ward is offline
Uber Real Estate Webmaster
Recently blogged:
Dunwoody Open House
at my REW Blog. Claim your blog
 
Join Date: Oct 2006
Location: Alpharetta
Posts: 3,437
Ryan Ward is on a distinguished road
Default Re: htaccess code help Please!

Got it guys. Thank you for the help!
__________________
Ryan Ward, REALTORŪ - Keller Williams Realty Consultants. (404) 630-3187
Atlanta Real Estate - My featured area is Alpharetta Real Estate and it is where I call home. Read my Atlanta Real Estate blog.
Reply With Quote
Old 06-28-2007, 03:44 PM
Ryan Ward's Avatar
Ryan Ward Ryan Ward is offline
Uber Real Estate Webmaster
Recently blogged:
Dunwoody Open House
at my REW Blog. Claim your blog
 
Join Date: Oct 2006
Location: Alpharetta
Posts: 3,437
Ryan Ward is on a distinguished road
Default Re: htaccess code help Please!

one more guys and I'm done:

I need:

www atlantarealestate-homesforsale.com/wordpress to take me to:

www atlantarealestate-homesforsale.com


Thanks for the help if possible,

Ryan
__________________
Ryan Ward, REALTORŪ - Keller Williams Realty Consultants. (404) 630-3187
Atlanta Real Estate - My featured area is Alpharetta Real Estate and it is where I call home. Read my Atlanta Real Estate blog.

Last edited by Ryan Ward; 06-28-2007 at 04:03 PM. Reason: correction
Reply With Quote
Old 06-28-2007, 05:20 PM
langard langard is offline
Real Estate WebMaster
 
Join Date: Apr 2006
Posts: 208
langard is on a distinguished road
Default Re: htaccess code help Please!

Paste this into your .htaccess file:

redirect 301 /wordpress http://www.atlantarealestate-homesforsale.com
__________________
LanGard MicroDevelopers Oregon Real Estate Agent and Company Directory
Reply With Quote
Old 06-28-2007, 05:26 PM
Ryan Ward's Avatar
Ryan Ward Ryan Ward is offline
Uber Real Estate Webmaster
Recently blogged:
Dunwoody Open House
at my REW Blog. Claim your blog
 
Join Date: Oct 2006
Location: Alpharetta
Posts: 3,437
Ryan Ward is on a distinguished road
Default Re: htaccess code help Please!

Langard,

Thank you for your help. It works perfectly.

I can't tell you the trouble I've had with these two blogs and I think I have them all figured out now.

The redirects should keep me in the good graces of Google.
__________________
Ryan Ward, REALTORŪ - Keller Williams Realty Consultants. (404) 630-3187
Atlanta Real Estate - My featured area is Alpharetta Real Estate and it is where I call home. Read my Atlanta Real Estate blog.
Reply With Quote
Reply


Thread Tools
Display Modes

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



For our members

Main Sections

IDX Coverage Areas

Spiders Welcome

All times are GMT -7. The time now is 05:06 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.