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-26-2007, 05:15 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,393
Ryan Ward is on a distinguished road
Default www. & no www.

I have a couple of blogs that work either way. Is this a problem? If so, how do I fix it? Do I 301 one of them to the other?

Thanks,

Ryan

Hope this is the right place!
__________________
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-26-2007, 07:59 AM
PLS PLS is offline
Advancing Webmaster
 
Join Date: Jul 2006
Posts: 36
PLS is on a distinguished road
Default Re: www. & no www.

Code:
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^domain\.com
RewriteRule ^(.*)$ http://www.domain.com/$1 [R=permanent,L]
Reply With Quote
Old 06-26-2007, 08:02 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,393
Ryan Ward is on a distinguished road
Default Re: www. & no www.

PLS,

Does this go in my htaccess?
__________________
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-26-2007, 08:13 AM
PLS PLS is offline
Advancing Webmaster
 
Join Date: Jul 2006
Posts: 36
PLS is on a distinguished road
Default Re: www. & no www.

Sorry, yes it does. If you already have the rewrite engine on in your .htaccess, you can remove those first two lines, by the way.
Reply With Quote
Old 06-26-2007, 08:27 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,393
Ryan Ward is on a distinguished road
Default Re: www. & no www.

This is what it says now:

# 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


This is what customer service told me to add:

RewriteEngine on
RewriteCond %{HTTP_HOST} ^alpharetta-real-estate-blog.com RewriteRule ^(.*) http://www.alpharetta-real-estate-blog.com/

Do I replace the old text beginning with: RewriteCond on

With the new text?
__________________
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-26-2007, 08:57 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,393
Ryan Ward is on a distinguished road
Default Re: www. & no www.

ok. That didn't work.

Let me tell you what I did:

FTP and downloaded the Wordpress .htaccess file to my desktop and created a copy.

Changed it completely to the code you gave me except the domain I changed to the url I wanted.

Uploaded it back to where it came from.

Nothing happened.

Then I tried to go back to the original script and modify it with a script that they sent and then again modified with the script you gave me and still nothing. When I type alpharetta-real-estate-blog.com, that is exactly what I get in the address bar. Isn't that supposed to redirect it?
__________________
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 06:21 AM.


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