小编vic*_*cch的帖子

在组织模式下如何打破当前部分并逃到上一级

在组织模式中,正常的层次结构如下:

* Section 1
  Content of section 1

  ** Section 1-1
     Content of section 1-1

  ** Section 1-2
     Content of section 1-2
Run Code Online (Sandbox Code Playgroud)

根据我的理解,标题之后的所有内容都属于该部分,直到它遇到另一个(更高或更低)标题.

但是有可能在不使用其他标题的情况下中断当前部分,并继续上一部分的内容吗?就像是 :

* Section 1
  Content of section 1

  ** Section 1-1
     Content of section 1-1
  ** Section 1-1 end

  Content of section 1 continues ...

  ** Section 1-2
     Content of section 1-2
  ** Section 1-2 ends


  Content of section 1 continues ...
Run Code Online (Sandbox Code Playgroud)

emacs elisp org-mode

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

.htaccess从子目录重写到root

我对mod_rewrite规则有些困难.我想重写任何请求

www.example.com/dev/*
Run Code Online (Sandbox Code Playgroud)

www.example.com/*
Run Code Online (Sandbox Code Playgroud)

例如,当请求url是www.example.com/dev/index.php,响应应该是www.example.com/dev/index.php,而不仅仅是url看起来像是来自根目录,但它实际上是使用index.phpfrom根目录.

我尝试过mod_alias

RedirectMatch (^/dev/)(.*) http://www.example.com/$2
Run Code Online (Sandbox Code Playgroud)

但是不可能在mod_alias中应用ip地址条件,所以我仍然需要一个mod_rewrite的解决方案.

有人会分享一些知识吗?谢谢.

apache url .htaccess mod-rewrite http

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

标签 统计

.htaccess ×1

apache ×1

elisp ×1

emacs ×1

http ×1

mod-rewrite ×1

org-mode ×1

url ×1