Intermediary transaction SEO diagnosis Taobao guest Cloud host technology Hall
Dynamic CMS system default home page is the name of the expansion, that is, after the site domain name will automatically add index.html or index.asp and other extensions.
We know that in search engine eyes, the weight of the directory is generally larger than the weight of the file, reflected in the domain name above, that is, Google pagerank inconsistent.
Under normal circumstances, if the site's navigation seo good, then www.dugutianjiao.com and www.dugutianjiao.com/index.html PR should be the same, Google search engine can actually better handle this point. However, by default, the dynamic {$ShowChannel} label output, the site home page, the address of the home page is {$InstallDir}index.htm, {$InstallDir}article/index.asp form, And most of the use of easy webmaster are not know how to do SEO, unable to solve the problem of navigation optimization, coupled with Google search engine we can not guarantee it hundred perfect processing, so how to make the easy to move the CMS site home page and channel first page does not show "extension", that is displayed as {$ InstallDir}, {$InstallDir}article/form is more important.
Below we take easy open source version of Siteweaver™cms 6.5 as an example of specific source code modification instructions to make it meet the requirements of the SEO.
The first method:
The main idea is to modify the PowerEasy.Common.Front.asp file under the Include folder of the root directory, change the function getchannellist (numnewline), and then alter the label {$ Showchannel} output.
1, the home address of the site by {$InstallDir}index.htm to modify the form of {$InstallDir}. Find the following code in include/powereasy.common.front.asp:
If channelid = 0 Then
Strchannel = Channellink & "" & XmlText ("Basetext", "FirstPage", "Site Home") & "& Channellink
Else
Strchannel = Channellink & "" & XmlText ("Basetext", "FirstPage", "Site Home") & "& Channellink
End If
Remove the "Filename_siteindex &" from it and modify it to:
If channelid = 0 Then
Strchannel = Channellink & "" & XmlText ("Basetext", "FirstPage", "Site Home") & "& Channellink
Else
Strchannel = Channellink & "" & XmlText ("Basetext", "FirstPage", "Site Home") & "& Channellink
End If
2, the channel home address from {$InstallDir}article/index.htm to modify the form of {$InstallDir}article/. Find the following code in include/powereasy.common.front.asp:
If Rschannel ("usecreatehtml") > 0 Then
Strchannel = Strchannel & "href=" & Channelurl & "/index" & Arrfileext (Rschannel ("Fileext_index")) & “‘”
Else
Strchannel = Strchannel & "href=" & Channelurl & "/index.asp"
End If
In the same vein, modify it to:
If Rschannel ("usecreatehtml") > 0 Then
Strchannel = Strchannel & "href=" & Channelurl & "/"
Else
Strchannel = Strchannel & "href=" & Channelurl & "/"
End If
After the modification is completed, save the file, update the cache, if the home page or each channel page needs to generate HTML, rebuild after the page can be refreshed.
The second method:
In IIS, the Web site default document settings to Index.html can be, access will not show the extension of the site, but this requires the server's administrator to operate, virtual space users may be a bit difficult to modify.
In addition, a friend to reflect the dynamic ®siteweaver™6.5 do the site's default document is generally index.asp and other forms, the first letter is uppercase, to be changed to lowercase "I" How to do? In fact, the method is very simple, dynamic is now open source, the advantage of open source is that it can be arbitrarily modified, Use Dreamweaver for a full station-wide search substitution, replacing uppercase index characters with lowercase.