Forum Moderators: phranque

Message Too Old, No Replies

problems with site getting indexed

wondering if there is a problem with my .htaccess file

         

davidpowell

4:26 am on Jun 19, 2009 (gmt 0)

10+ Year Member



Hey everyone,

I recently created a site using vbulletin software. I created a blog also using wordpress on a subdomain.

The blog got indexed in google fine but the forum didnt, so i decided to do a server side redirect to the forum from the blog about three weeks after go live, but it is still not being indexed correctly

my .htaccess file looks like this:

Options +FollowSymLinks
# turn on rewrites.
RewriteEngine on
# send index.php to root
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.php\ HTTP/
RewriteRule ^index\.php$ http://www.example.com/ [R=301,L]
# send example.com to www.example.com
RewriteCond %{HTTP_HOST} ^example.com
RewriteRule (.*) http://www.example.com/$1 [R=301,L]
RewriteBase /
# notfound page
ErrorDocument 404 /notfound.html

does anyone see anything wrong with that? i have also removed the redirects from the blog now and taken down that domain...

the forum is located at http://www.example.com

[edited by: jdMorgan at 1:38 pm (utc) on June 19, 2009]
[edit reason] example.com [/edit]

jdMorgan

1:46 pm on Jun 19, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



The only problem with this code is that the literal periods in the RewriteCond patterns have not been escaped (by preceding them with "\". These periods are therefore interpreted as regex tokens meaning "match any single character," and so result in some ambiguity. However, this is unlikely to cause much trouble, and is certainly not the cause of your reported problem.

If you have removed the redirects from your blog and have taken down its (sub)domain, then your previous redirection is no longer in effect, and the forum will no longer benefit from it. The forum will have to stand alone on the strength of its own backlinks -- and really, this is as it should be, since a blog and a forum are two very different things. If your site does not have high pagerank, and if the forum is not well linked-to from third-party sites, then it may take quite awhile for it to get indexed. While Google returns search results in milliseconds, index-related activities often take months...

Jim