标签: custom-pages

如何使用#react-admin创建没有菜单侧栏(如登录页面)的自定义页面?

我正在使用react-admin之前的admin-rest。我想创建一个不显示菜单侧栏的自定义页面,例如“登录”页面。我将使用此页面重置用户密码。我怎样才能做到这一点?

menu custom-pages reactjs react-admin

6
推荐指数
1
解决办法
3479
查看次数

htaccess 403 尝试使用 ErrorDocument 时遇到禁止错误

我想在我的项目中有一个自定义 403 页面。所以我在 .htaccess 文件中添加了这些代码:

Order deny,allow
Deny from all
Allow from 192.168.1.0/24

ErrorDocument 403 /403.htm
Run Code Online (Sandbox Code Playgroud)

但是,当项目从超出范围的 IP 运行时,必须发生 403 错误,自定义 403 页面重定向不起作用,我也会给出另一个错误。

禁止

您无权访问此服务器上的/app/。
此外,尝试使用 ErrorDocument 处理请求时遇到 403 Forbidden 错误。

这个问题是为了什么?我在 StackOverflow 和其他网站上阅读了不同的文章,但没有一个不能解决这个问题。

apache .htaccess custom-pages http-status-code-403

5
推荐指数
1
解决办法
3万
查看次数

如何设置此序列形式的序列号(Inno Setup)

我正在寻找一个串行脚本,我在这里找到了一个:

Inno Setup中序列号的CustomPage

但是如何设置序列,因为所有序列号现在都有效.

感谢您的回答!

validation inno-setup serial-number custom-pages

2
推荐指数
1
解决办法
2220
查看次数

Woocommerce 我的帐户自定义页面 - 页面未找到 404(永久链接问题)

我正在尝试在 Woocommerce 的“我的帐户”部分中创建自定义页面,但是当我打开此页面时,我收到 404(找不到页面)。我尝试重新保存(刷新)“设置”->“永久链接”中的永久链接,但没有任何变化(再次出现 404 - 找不到页面)。我正在使用此永久链接类型“https://mywebsite.com/sample-post/”。当我将永久链接类型更改为“https://mywebsite.com/?p=123”时,它正在工作并且页面显示。有人可以告诉我问题出在哪里以及为什么它可以使用“普通”永久链接,但不能使用“帖子名称”永久链接?这是我的代码片段:

// 1. Register new endpoint to use for My Account page
// Note: Resave Permalinks or it will give 404 error
  
function bbloomer_add_premium_support_endpoint() {
    add_rewrite_endpoint( 'premium-support', EP_ROOT | EP_PAGES );
}
  
add_action( 'init', 'bbloomer_add_premium_support_endpoint' );
  
  
// ------------------
// 2. Add new query var
  
function bbloomer_premium_support_query_vars( $vars ) {
    $vars[] = 'premium-support';
    return $vars;
}
  
add_filter( 'query_vars', 'bbloomer_premium_support_query_vars', 0 );
  
  
// ------------------
// 3. Insert the new endpoint into the My Account menu
  
function …
Run Code Online (Sandbox Code Playgroud)

php wordpress permalinks custom-pages woocommerce

1
推荐指数
1
解决办法
2502
查看次数