Real Estate Forums
| Coding HTML, ASP, PHP, JAVA MYSQL and more. All coding questions should be asked here. |
![]() |
|
|
Thread Tools | Display Modes |
|
||||
|
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. |
|
|||
|
Code:
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^domain\.com
RewriteRule ^(.*)$ http://www.domain.com/$1 [R=permanent,L]
|
|
||||
|
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. |
|
|||
|
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.
|
|
||||
|
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. |
|
||||
|
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. |
![]() |
| Thread Tools | |
| Display Modes | |
|
|