问题标签 [sef]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
url-rewriting - 从 joomla 中的 url 中删除菜单项名称/别名
我有一个菜单,当我单击一个菜单项时,我被重定向到项目内容。
所以我在domain.com/menuitem页面。在当前页面中,我有一些类别,当我单击一个类别时,我会被重定向到其内容。
所以我在domain.com/menuitem/category页面。当我在该页面上时,我不希望显示菜单项名称。我想要domain.com/category
我怎样才能通过不使用任何外部 sef 组件来实现这一点?
url - Joomla 3.0 组件 - 路由器 SEF,添加一个段
有人可以告诉我如何在 SEF URL 的开头添加一个段 - 即:
http://somedomain.com/*SEGMENT*/task/id
*SEGMENT*只是一个静态字符串,只是为了显示而不是从查询中获取。
我的组件中有一个非常基本的 router.php:
希望有人能帮忙!
url - 缩短 Joomla SEF URL 父/子/子菜单项,仅使用一个别名而不使用多个父别名
无论如何,是否只在 URL 中显示菜单项别名而不显示其父别名?我知道我可以创建一个隐藏菜单,其中包含根级别的所有项目,但这会使面包屑无法使用。
例如:www.mysite.com/grand-parent/parent/child
我喜欢它只是 www.mysite.com/child
我使用 Joomla 2.5 打开了 url rewrite/sef。
谢谢,
将要
.htaccess - joomla 网站中的友好网址
我正在尝试使我的 joomla 网站的网址更加友好。目前,典型的 url 是这样的:
www.mysite.com/index.php?option=com_content&view=article&id=5&Itemid=10&hotel=182。
我想要一个如下所示的网址:
www.mysite.com/hotel_name,其中hotel_name 的值将是我的数据库中字段“hotel_name”的值!
为了实现这一目标,.htaccess 文件中需要哪些流程?
.htaccess - Rewrite dynamic url structure with .hataccess
I've tried to rewrite the dynamic URL (below) to a slightly different structure; either does not work or I am not sure if it is correct:
- Old URL (URL#1): index.php?lang=AAA&zone=BBB&city=CCC&str=DDD&search=EEE
- New URL (URL#11): index.php?lang=AAA&country=BBB&place=CCC&street=DDD
*basically changed the names and the "search" string is not important any more
- what I am trying to achieve is redirecting all visitors from (old) dynamic URL#1 to (new) dynamic URL#11
In a second step, after all search engines show the new urls and we finished all test that are easier with non-sef urls, we would like to rewrite URL#11 to URL#2
- New URL (URL#11): index.php?lang=AAA&country=BBB&place=CCC&street=DDD
- Sef URL (URL#2): /AAA/BBB/CCC/DDD
I am not very familiar with apache programming and even when my solution works, we are not sure if it is the right one or if it will generate errors with certain URLs. Any help would be highly appreciated in creating a .htaccess file that does the step 1 redirection and a separate .htaccess file to be used later, for SEF urls. THANK YOU!
.htaccess - 使用 .htaccess [R=301,L] 重定向 url
我想使用 .htaccess [R=301] 重定向页面 url
原始网址:http ://www.encros.fr/la-boutique-encros/recharge-toner
重定向网址:http ://www.encros.fr/recharge-toner
有人可以帮助我吗?
joomla - 使用 K2 v2.6.5 制作 SEF URL
我正在使用 Joomla 2.5.1 和 K2 2.6.5。我想弄清楚如何在 K2 中使用 SEF url。我的网站带有“真实”文件夹“coolmovies”。Joomla 控制这个文件夹。
在 K2 中,我有一个类别 alias='scifi',其中我有一个项目 alias='startrek' 和 'startrek' 的项目 id 为 42。目前这个 url 有效:
http://mycoolsite.com/coolmovies/42-startrek
我将 K2 的 SEF 设置更新为以下内容:
理论上,这现在应该可以工作:
http://mycoolsite.com/coolmovies/scifi-startrek
但事实并非如此。我尝试了各种排列,但除了 404 错误我什么也没得到。
我找到了这个链接供参考。 http://getk2.org/community/New-to-K2-Ask-here-first/6472-K2-SEO-issue---Can-it-be-fixed?limit=20&start=40
任何帮助,将不胜感激!
url - Joomla URL Additional Get 变量破坏了 SEF URL
我正在使用 Joomla 3,在菜单项中我创建了两个名为 City 和 County 的附加字段,我手动输入值并将其作为 Get 变量传递给 URL。
在 components/com_content/views/article/tmpl/default.xml 我创建了这两个字段。
例如,普通文章 URL 看起来像 index.php?option=com_content&view=article&id=22
但是当我填充 City 和 County 字段时,URL 变成这样 index.php?option=com_content&view=article&id=22&City=4&County=1
但是,在启用 SEF URL 之前,一切似乎都可以正常工作。但是当我启用 SEF URL 时,这些额外的城市和县参数不会被传递,它会破坏整个站点。
我在某处读过这是用 router.php 和 jroute 做一些事情,我不是程序员,仍在学习我的绳索。请有人告诉我如何告诉 jroute 或 jrouter 将这些作为参数传递,我不想丢失 SEF URL。
或者,如果您有其他方法,我会非常满意。感谢您的帮助。
php - 从 joomla 组件 router.php 中检索值
好的,我得到了我的自定义组件路由器,但我仍然需要其中的值,我不知道如何在我的组件中使用这些值
例如在网址中
index.php?option=com_maodeobras&view=maodeobras&cat=mymaincat&sub=mysubcat
我想要想要的结果(用我的路由器实现)
maodeobras/mymaincat/mysubcat.html
问题是:
如何从组件或 url 中检索变量 cat 和 sub?
这是我的路由器
url - Joomla 2.5 SEF URL 不需要的项目
全部,
我已经设置了 .htaccess,并且 SEF URL 正在工作。但是,一个类别(实际上是 k2 类别的项目)正在播种不需要和未知的项目:
如果您看到这两个链接,它们都指向 k2 项目博客,但是,其中一个包含额外的项目 /media-players 和 /share。
http://www.transcendchurch.org/multimedia/blog/sunday-synopsis http://www.transcendchurch.org/multimedia/media-players/blog/pastors-blog/share
我完全感到困惑,因为 /media-players 和 /share 都不是网站上类别或部分或 k2 项目的合法名称。此外,我已经验证了 k2 类别和 joomla 菜单项的配置和菜单设置是相同的,分配给每个类别的模块也是相同的。