Joomla网站SEO优化sh404SEF组件设置教程

Joomla optimizes the sh404SEF advanced Settings

​Sh404SEF component Settings are mainly divided into two parts: basic Settings and advanced Settings. For most websites, basic Settings can meet the requirements!
Sh404SEF组件设置主要分为两大部分,基本设置和高级设置,对于大部分网站,使用基本设置就能满足要求了

Sh404SEF 基本设置

基本设置较为简单,进入Sh404SEF组件后台右上角开启以下设置。
1、Enable URL optimization
Enable remote configuration
If set to Yes, sh404sef will read up to date configuration from a central configuration file located on one of our server (http://versions.siliana.com/sh404sef_config.xml). This is an extremely useful feature, and we strongly encourage you to enable it. sh404SEF will work as usual without this switched on, but you will not get access to the latest version of various pieces of data, such as update server urls or search engines list especially in between releases.

如果设置为Yes, sh404sef将从位于服务器上的一个中央配置文件(http://versions.siliana.com/sh404sef_config.xml)读取最新配置。这是一个非常有用的特性,我们强烈建议您启用它。sh404SEF在不启用此功能的情况下仍然可以正常工作,但是您将无法访问各种数据的最新版本,比如更新服务器url或搜索引擎列表,尤其是在版本之间。

2、Enable remote configuration
Enable URL optimizationWhen set to Yes, sh404sef will take over SEF url generation from Joomla!This will happen regardless of the SEF setting found under Joomla!'s Global configuration panel.

启用URL优化当设置为Yes时,sh404sef将接管从Joomla生成SEF url !无论在Joomla下找到的SEF设置是什么,都会发生这种情况!进行全局配置。

3、Activate security functions
Activate security functions
If set to Yes, sh404SEF will do some basic checks on the URLs requested to your web site, in order to protect it agains common attacks.

激活安全功能如果设置为Yes, sh404SEF将对请求到您的web站点的url做一些基本的检查,以保护它免受常见的攻击。

Sh404SEF 高级设置

​高级设置非常的复杂,进入Sh404SEF组件后台,操作复杂程度超过了一般人的想象,高级操作区让人难以下手对吧,不急,我们慢慢来阐述分析。

1、sh404SEF Configuration

General一般设置

Main​​ 主要设置

1、Enable URL optimization
启用URL优化当设置为Yes时,sh404sef将接管从Joomla生成SEF url !无论在Joomla下找到的SEF设置是什么,都会发生这种情况!进行全局配置。

2、Enable remote configuration
If set to Yes, sh404sef will read up to date configuration from a central configuration file located on one of our server (http://versions.siliana.com/sh404sef_config.xml). This is an extremely useful feature, and we strongly encourage you to enable it. sh404SEF will work as usual without this switched on, but you will not get access to the latest version of various pieces of data, such as update server urls or search engines list especially in between releases.
如果设置为Yes, sh404sef将从位于服务器上的一个中央配置文件(http://versions.siliana.com/sh404sef_config.xml)读取最新配置。这是一个非常有用的特性,我们强烈建议您启用它。sh404SEF在不启用此功能的情况下仍然可以正常工作,但是您将无法访问各种数据的最新版本,比如更新服务器url或搜索引擎列表,尤其是在版本之间。

3、Replacement character
Character to use to replace unknown characters in URL
用于替换URL中未知字符的字符

4、Page spacer character
Character to use to space page numbers away from the rest of the URL
字符,用于将页码与URL的其余部分隔开

5、Strip characters
Characters to strip from the URL, separate with |
要从URL中剥离的字符,用|分隔

6、Character replacements list
Characters non accepted in URL, such as non-latin or accented, can be replaced as per this replacement table.
Format is xxx | yyy for each replacement rule. xxx is the character to be replaced, whereas yyy is the new character.
There can be many of this rules, separated by commas (,). Between the old character and the new one, use a | character.
Note also that xxx or yyy can be multiple characters, such as in Å'|oe
URL中不接受的字符,如非拉丁字符或重音字符,可以根据这个替换表替换。
格式为每个替换规则的xxx | yyy。xxx是要替换的字符,yyy是新字符。
可以有很多这样的规则,用逗号(,)分隔。在旧字符和新字符之间使用|字符。
还请注意,xxx或yyy可以是多个字符,例如在' |oe中

7、Trim friendly characters
Characters to trim from around the URL, separate with |. Warning: if you change this from its default value, make sure to not leave it empty. At least use a space. Due to a small bug in Joomla, this cannot be left empty.
要从URL周围修剪的字符,用|分隔。警告:如果您将其从默认值更改为空,请确保它不为空。至少要留个空间。由于Joomla中有一个小bug,所以不能让它空着。

8、File suffix
Extension to use for 'files'. Leave blank to disable. A common entry here is 'html'.
后缀用于“伪静态”。留空以禁用。这里常见的条目是"html"。

9、Always append #items per page
If set to Yes, sh404sef will always append the number of items per page to paginated urls. For instance, .../Page-2.html will become .../Page2-10.html, if the current settings cause 10 items to be displayed per page. This is required for instance if you activated drop-down lists to let your user select number of items per page.
如果设置为Yes, sh404sef将始终将每个页面的项数附加到分页url。例如,../Page-2.html将变成../Page2-10。html,如果当前设置导致每个页面显示10个项目。这是必要的,例如,如果您激活下拉列表,让您的用户选择每页的项目数。

10、Default index file.
在没有文件存在的情况下放置在空白URL /后面的文件名。对于搜索站点中特定文件但返回404(因为那里没有404)的机器人非常有用。

11、All lowercase
Convert all characters to lowercase characters in the URL
将所有字符转换为URL中的小写字符

shURL 短链接

Please note that shURL creation must also be enabled for each component on your site, using the By component tab of sh404sef configuration
请注意,还必须使用sh404sef配置的By component选项卡为站点上的每个组件启用shURL创建

1、Enable shURL
shURL is an internal short url created on the fly by sh404sef, in order to make it easier to use short urls in printed material or Twitter posts. shURL can be created for most urls, which can lead to massive use of the database in case of large sites. You should enable it only if it is useful for your site. Please note that shURL creation must also be enabled for each component on your site, using the By component tab of sh404sef configuration. Lastly, even if enabled, the sef url extension-specific plugin has to allow shURL creation explicitely.
You can display the shURL for the current page anywhere by inserting the following tag :{sh404sef_shurl}.
It will be replaced automatically by sh404sef by the shURL
shURL是sh404sef动态创建的一个内部短url,以便在打印材料或Twitter帖子中更容易地使用短url。可以为大多数url创建shURL,这可能导致在大型站点中大量使用数据库。只有当它对您的站点有用时,才应该启用它。请注意,shURL创建也必须为您站点上的每个组件启用,使用sh404sef配置的By component选项卡。最后,即使启用了sef url扩展特定插件,也必须明确地允许创建shURL。您可以通过插入以下标记来显示当前页面的shURL:{sh404sef_shurl}。

它将被shURL自动替换为sh404sef。

2、Stop creating new shURL
If set to Yes, sh404sef will stop creating new shURLs for new pages. Existing shURL will still work normally, and will be redirected to their full-length SEF url counterpart
如果设置为Yes, sh404sef将停止为新页面创建新的shurl。现有shURL仍将正常工作,并将重定向到它们的全长SEF url对应项。

3、shURL blacklist
Enter here a list of shURL you do NOT want to be created. Separate each one with a pipe ( | ) character. For instance, entering bad|bar will cause sh404SEF to never create a example.com/bad or a example.com/bar shURL.
Note that letters i, j, l, m, n, o, s, t, v and 0, 1, 2, 5 will never be used to create shURL, so you do not need to blacklist any word that contains one of them.
在这里输入您不想创建的shURL列表。用一个管道(|)字符分隔每一个。例如,输入bad|bar将导致sh404SEF永远不会创建example.com/bad或example.com/bar shURL。
注意,字母i, j, l, m, n, o, s, t, v和0,1,2,5将永远不会被用来创建shURL,所以您不需要将任何包含它们之一的单词列入黑名单。

4、Non-sef url blacklist
Enter here a list of non-sef url parts that will prevent shURL to be generated. Separate each one with a pipe ( | ) character. For instance, entering Itemid=34|task=edit will make sure no shURL is created for any non-sef url that contains the string 'Itemid=34' or the string 'task=edit'.
在这里输入将阻止生成shURL的非sef url部分列表。用一个管道(|)字符分隔每一个。例如,输入Itemid=34|task=edit将确保没有为任何包含字符串'Itemid=34'或字符串'task=edit'的非sef url创建shURL。

5、Insert shortlink tag
If set to Yes, and a shURL is available for current page, a rel='shortlink' link tag will be inserted in the head section of the document, and as an HTTP header.
如果设置为Yes,并且shURL对当前页面可用,则rel='shortlink'链接标记将插入文档的头部部分,并作为HTTP头部。

6、Insert rev canonical tag
If set to Yes, and a shURL is available for current page, a rev='canonical' link tag will be inserted in the head section of the document (not to be mistaken with a rel='canonical' link)
如果设置为Yes,并且当前页面可用shURL,则会在文档的头部插入一个rev='canonical'链接标记(不要与rel='canonical'链接相混淆)

7、Insert Alt. shorter tag
If set to Yes, and a shURL is available for current page, a rel='alternate shorter' link tag will be inserted in the head section of the document
如果将其设置为Yes,并且当前页面可用shURL,则将在文档的标题部分插入rel='alternate short '链接标记。

Advanced 高级设置

Cache management 缓存管理

1、Activate URL cache
If activated, SEF URL will be written to an in-memory cache, which will improve page load time significantly. This will however use up memory!
如果被激活,SEF URL将被写入内存缓存,这将显著提高页面加载时间。但是这会耗尽内存!

2、Cache size
When URL cache is activated, this parameter sets its maximum size. Enter the maximum number of URL that can be stored in the cache (additional URL will be processed, but not stored in cache, so loading time will be higher). Roughly speaking, each URL is worth around 200 bytes (100 for the SEF URL and 100 for the non-sef URL). So, for instance, 5000 URLs will use about 1 Mb of memory.
当URL缓存被激活时,该参数设置其最大大小。输入可以存储在缓存中的URL的最大数量(将处理额外的URL,但不存储在缓存中,因此加载时间会更长)。粗略地说,每个URL大约值200字节(SEF URL 100字节,非SEF URL 100字节)。例如,5000个url将使用大约1 Mb的内存。

3、Url cache handler
If URL cache is enabled, URLs can be cached either on a disk file (default), or in shared memory. The latter requires a cache system such as APC, Memcache, WinCache to be installed and properly activated on your server.
You can set up connection parameters for these cache system, if required, in the shLib system plugin
如果启用了URL缓存,URL可以缓存在磁盘文件(默认值)上,也可以缓存在共享内存中。后者要求在服务器上安装APC、Memcache、WinCache等缓存系统并正确激活。如果需要,您可以在shLib system plugin中为这些缓存系统设置连接参数

4、Display cache stats
If set to Yes, URL cache statistics will be appended to the end of each page. Enable only for debugging and testing purpose
如果设置为Yes, URL缓存统计信息将附加到每个页面的末尾。仅用于调试和测试目的。

Advanced Component Configuration 高级组件配置

1、301 redirect from non-sef to sef URL
If set to Yes, non-sef URL already existing in the DB will be redirected to their SEF counterpart, using a 301 - Moved permanently redirection. If the SEF URL does not exist, it will be created, except if there are some POST data passed in the page request.
如果设置为Yes,数据库中已经存在的非SEF URL将被重定向到它们的SEF对应的URL,使用301 - Moved永久重定向。如果SEF URL不存在,它将被创建,除非页面请求中传递了一些POST数据。

2、301从JOOMLA SEF重定向到sh404SEF
If set to Yes, sh404sef will try to redirect JOOMLA standard SEF url to their sh404SEF equivalent, if any in the database. If it does not exists, it will be created on the fly, unless there is some POST data, in which case nothing happens. Warning: this feature will work in most cases, but may give bad redirects for some Joomla SEF URL. Leave off if possible.
如果设置为Yes,sh404sef将尝试将JOOMLA标准SEF url重定向到它们的sh404sef等效(如果数据库中有的话)。如果它不存在,它将被动态创建,除非有一些POST数据,在这种情况下什么也不会发生。警告:这个特性在大多数情况下都可以工作,但是对于某些Joomla SEF URL可能会给出错误的重定向。尽可能不要去设置。

3、301 redirect www/non-www
Select whether sh404SEF should perform a 301 redirect when your site is accessed from a wrong url. It is recommended to switch this on. You can select either with or without www as your preferred setting, but always use only one version of your site URL. Will prevent duplicate content penalties, and some issues depending on your Apache server config, as well as problems with Joomla (WYSYWIG editors).
选择当从错误的url访问站点时,sh404SEF是否应该执行301重定向。建议打开这个开关。您可以选择有或没有www作为首选设置,但始终只使用一个版本的网站URL。将防止重复的内容惩罚,一些问题取决于您的Apache服务器配置,以及Joomla (WYSYWIG编辑器)的问题。

4、301 redirect url to correct case
If set to Yes, sh404sef will perform a 301 redirect from a SEF url if it does not have the same case as an url found in the database. For instance, example.com/My-page.html will be redirected to example.com/my-page.html, if the latter is stored in the database. Conversely, example.com/my-page.html will be redirected to example.com/My-page.html if the later is the url used on your site, and therefore stored in the database.
如果设置为Yes, sh404sef将从一个SEF url执行301重定向,如果它没有与数据库中找到的url相同的情况。例如,如果example.com/My-page.html存储在数据库中,那么它将被重定向到example.com/My-page.html。相反,如果example.com/my-page.html是站点上使用的url,并且因此存储在数据库中,则example.com/my-page.html将被重定向到example.com/my-page.html。

5、Log 404 errors
If set to Yes, 404 errors will be logged to database. This may help you find errors within your site links. It may also use up uneeded database space, so you can probably disable i when your site has been well tested.
如果设置为Yes, 404错误将被记录到数据库中。这可以帮助您在站点链接中找到错误。它还可能使用不需要的数据库空间,所以当您的站点经过良好的测试时,您可能会禁用i。

6、Referrer policy
sh404SEF will insert a 'referrer' meta tag into your page using the selected referrer policy. See http://w3c.github.io/webappsec/specs/referrer-policy/
sh404SEF将使用选择的referrer策略在您的页面中插入一个"referrer"元标记。参见http://w3c.github.io/webappsec/specs/referrer-policy/

7、Force non sef if HTTPS
If set to Yes, URL will be forced to non sef after switching to SSL mode(HTTPS). This allows operation with some shared SSL servers causing problems otherwise.
如果设置为Yes,在切换到SSL模式(HTTPS)后,非sefURL将被迫转换。这允许对一些共享SSL服务器进行操作,否则会导致问题。

8、Home page URL
You can enter here a forced home page URL. Useful if you have setup a 'splash page' usually a index.html file, which is displayed when you browse http://www.mysite.com. If so, type the following URL: http://www.mysite.com/index.php (no trailing /), so that the Joomla site is displayed when the Home link of main menu or pathway is clicked
您可以在这里输入强制的主页URL。如果你设置了一个"启动页面",这将非常有用通常是一个index.html文件,在浏览http://www.mysite.com时显示。如果是,请输入以下URL: http://www.mysite.com/index.php(没有拖尾/),以便在单击主菜单或路径的Home链接时显示Joomla站点。

9、Slow server
If set to Yes, a simplified version of the sh404sef control panel will be used.
While sh404sef can handle several hundreds of thousands of urls on appropriate server on the front end (what your visitors can see), the sh404sef control panel, and specifically the Url manager, uses more advanced database queries which can become very slow if the combination web server power/ number of urls in the database is not sufficient.
In such cases, switching to slow server mode will make the url manager snappy again, at the expense of missing information such as duplicates and aliases count
如果设置为Yes,将使用简化版的sh404sef控制面板。而sh404sef可以处理一些适当的服务器上成千上万的Url在前端(你的参观者可以看到),sh404sef控制面板,特别是Url经理,使用更先进的数据库查询可以变得非常缓慢,如果结合web服务器电源/数据库的Url是不够的。在这种情况下,切换到慢速服务器模式将使url管理器再次快速运行,代价是丢失的信息,如重复和别名计数。

10、Log debug info to file
You can enable logging of useful debug information to a log file in the ShLib plugin parameters. Set 'Log debug message' to Yes there. Don't forget to disable it after a while, as log files may get quite large quite soon.
您可以在ShLib插件参数中将有用的调试信息记录到日志文件中。将"Log debug message"设置为Yes。不要忘记在一段时间之后禁用它,因为日志文件可能很快就会变得非常大。

11、Extensions needing $_GET
Enter a comma-separated list of extensions requiring parsed url to be passed to $_GET/$_POST. This is needed for extensions not complying with Joomla! 3+ routing API, which still use $_GET/$_POST directly.
输入一个逗号分隔的扩展列表,要求将解析后的url传递给$_GET/$_POST。这对于不符合Joomla的扩展是必需的!3+路由API,仍然直接使用$_GET/$_POST。

Itemid management ID管理

1、Guess Itemid on homepage
If set to yes, and on homepage only, Itemid of com_content URLs will be removed and replaced by the one sh404SEF guestimates. This is useful when some content elements can be viewed on the frontpage (in blog view for instance), and also on other pages on the site.
如果设置为yes,并且仅在主页上,com_content url的Itemid将被删除,并被一个sh404SEF guestimate替换。当某些内容元素可以在首页(例如在blog视图中)以及站点的其他页面上查看时,这是非常有用的。

2、Insert menu Itemid if none
If no Itemid is set in the non-sef URL before it is turned into an SEF one, and you set this option to true, the curent menu item Itemid will be added to it. This will ensure that, if clicked, the link will stay on the same page (ie: same modules displayed)
如果在将非SEF URL转换为SEF URL之前没有设置Itemid,并且将此选项设置为true,则将添加当前菜单项Itemid。这将确保,如果点击,链接将停留在相同的页面(即:相同的模块显示)

3、Insert menu title if no Itemid
If no Itemid is set in the non-sef URL before it is turned into an SEF one, and you set this option to true, the current menu item title will be inserted in the SEF URL. This should be set to true if above parameter is also set to true, as this will prevent -2, -3, -... to be appended to the SEF URL if an article is viewed from different locations
如果在将非SEF URL转换为SEF URL之前没有设置Itemid,并且将此选项设置为true,则当前菜单项标题将插入SEF URL。如果上面的参数也设置为true,那么这个值应该设置为true,因为这样可以防止-2、-3、-…如果从不同位置查看文章,则将其附加到SEF URL

4、Always insert menu title
If set to yes, the menu item title corresponding to the Itemid set up in the non-sef URL, or the current menu item title if no Itemid is set, will be inserted in the SEF URL.
如果设置为yes,则将在SEF URL中插入与在非SEF URL中设置的Itemid对应的菜单项标题,如果没有设置Itemid,则将插入当前菜单项标题。

5、Always append Itemid to SEF URL
If set to yes, the non-sef Itemid (or the current menu item Itemid if none is set in the non-sef URL) will be appended to the SEF URL. This should be used instead of Always insert menu title parameter, if you have several menu items with the same title (as if one in main menu and one in top menu for instance)
如果设置为yes,则将把非SEF Itemid(如果非SEF URL中没有设置Itemid,则为当前菜单项Itemid)附加到SEF URL中。如果您有多个具有相同标题的菜单项(例如,一个在主菜单中,一个在顶部菜单中),应该使用此参数,而不是总是插入菜单标题参数。

6、Default menu title
When the above parameter is set to Yes, you can override the text inserted in the SEF URL here. Note that this text will be invariant, and will not be translated for instance
当上面的参数设置为Yes时,您可以覆盖这里插入到SEF URL中的文本。注意,该文本将是不变的,并且不会被翻译。

Upgrade configuration 升级配置

1、Enable new version check
If set to Yes, sh404sef will check for the availability of new versions. It will not send any information from your site, but only call our servers to know if a version newer than the one currently running on your site is available. Result of such check will be cached for 24 hours, meaning that at most one such call per day will be done, regardless of how many times you access sh404sef main control panel. If a newer version is available, the About/updates tab on the main screen will turn red. Going to this tab, you'll find a link to download the new version, and another one to view the changelog.
如果设置为Yes, sh404sef将检查新版本的可用性。它不会从您的网站发送任何信息,但只会调用我们的服务器,以了解是否有比当前运行在您网站上的版本更新的版本可用。这种检查的结果将缓存24小时,这意味着每天最多执行一次这样的调用,而不管您访问了多少次sh404sef主控面板。如果有更新的版本可用,主屏幕上的About/updates选项卡将变为红色。转到这个选项卡,您将找到下载新版本的链接,以及查看更改日志的链接。

2、Preserve configuration
If set to Yes, all configuration parameters will be stored and preserved when you unistall the component. This way, you will find them back when you install a new version, with no additional action required.
如果设置为Yes,则在对组件进行unistall时将存储和保存所有配置参数。这样,当您安装一个新版本时,您就会发现它们回来了,而不需要额外的操作。

3、Preserve automatic URL
If set to Yes, SEF URL automatically generated by sh40SEF will be stored and preserved when you unistall the component. This way, you will find them back when you install a new version, with no additional action required.
如果设置为Yes,则在对组件进行unistall时将存储和保存sh40SEF自动生成的SEF URL。这样,当您安装一个新版本时,您就会发现它们回来了,而不需要额外的操作。

4、Preserve custom URL, aliases, shURLs
If set to Yes, custom SEF URL you may have entered will be stored and preserved when you unistall the component. This way, you will find them back when you install a new version, with no additional action required.
如果设置为Yes,则在unistall组件时将存储和保存您可能输入的自定义SEF URL。这样,当您安装一个新版本时,您就会发现它们回来了,而不需要额外的操作。

5、Preserve Title and meta
If set to Yes, custom Title and Meta tags you may have entered will be stored and preserved when you unistall the component. This way, you will find them back when you install a new version, with no additional action required.
如果设置为Yes,则在对组件进行unistall时,可能已经输入的自定义标题和元标记将被存储和保存。这样,当您安装一个新版本时,您就会发现它们回来了,而不需要额外的操作。

 

评论 (0)

评级
这里还没有评论。

您的意见

  1. 作为嘉宾发表评论。 注册登录到您的帐户。
Rate this post:
附件 (0 / 3)
分享你的位置