PHP Change Will Kill My PageRank and Other Search Problems
December 23rd, 2005One thing I just realized about converting the blog into php pages is that if I erase the old .htm pages I will lose ALL of my google PageRank and probably won’t be indexed properly in Google’s search results.
Does anyone know if there is anything that can be done about this?
Update: 25 December 2005
So what I did to fix the problem was to enable Permalinks under the WordPress options tab. This consequently fixed my problem of named archives, but somehow at the same time it broke the search tool so that it would only work when on my ‘home’ view.
I found a google cache with the answer and I’m posting it here to help clear up the problem for others.
On my site, the search works fine when you’re on my “home” view. However, when you go onto a page that I created, the search seems to fail. How can I get it so that if I’m trying to search on a page instead of my main page, it’ll search the main pages?
I think it has something to do wtih the fact that I’m now in www. myurl.com/pages/ instead of www. myurl.com so it can’t search properly. Anyone know how I can fix this? Thanks!
Posted: 2005-02-25 15:22:51 # Kafkaesqui
Member
Go into the search’s form tag (in page.php if you’re using this for your Pages template) and change the action value to:action=”/”
or:
action=”/index.php”
I went into the searchform.php template and changed <form id="searchform" method="get" action="< ?php echo $PHP_SELF; ?>"> to <form id="searchform" method="get" action="/index.php"></form> and it worked! Hope that helps.
