Real Estate Forums
| Coding HTML, ASP, PHP, JAVA MYSQL and more. All coding questions should be asked here. |
![]() |
|
|
Thread Tools | Display Modes |
|
||||
|
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
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 |
|
|||
|
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 |
|
|||
|
Are you trying to make it redirect the non-www to the www like it does here
http://atlantarealestategeorgia.com/ ? |
|
|||
|
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 |
|
|||
|
Quote:
That's the code he probably wants - Thank you. |
|
||||
|
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. |
|
||||
|
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. |
|
||||
|
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 |
|
|||
|
Paste this into your .htaccess file:
redirect 301 /wordpress http://www.atlantarealestate-homesforsale.com
__________________
LanGard MicroDevelopers Oregon Real Estate Agent and Company Directory |
|
||||
|
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. |
![]() |
| Thread Tools | |
| Display Modes | |
|
|