我正在使用OJS,我已将其安装在名为"journals"的文件夹中.我在那里创建了一些期刊(例如"journal1","journal2"等).
现在我得到的路径是这样的:www.example.com/journals/index.php/journal1,
www.example.com/journals/index.php/journal2等等.
我想要的是映射www.example.com/journals/index.php/journal1
到外观www.example.com/index.php/journal1(从URL中删除日记部分).
我无法将OJS移动到root,因为我在那里有一些其他文件.
这是.htaccess我目前使用的文件(它位于"journals"文件夹中,给我500个)
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond $1 !^journals
RewriteRule ^(.*) /journals/$1 [L]
</IfModule>
Run Code Online (Sandbox Code Playgroud)
这也是error.log
[Fri Oct 12 22:16:45 2012] [error] [client 127.0.0.1] Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace.
Run Code Online (Sandbox Code Playgroud) 为什么python提供这样的输出:
>>> 'apple' > 'T'
True
>>> 'apple' > 't'
False
Run Code Online (Sandbox Code Playgroud)
对于这两种情况都应该是正确的.
编辑:
我有ASCII表的想法.谢谢!!
那么这个怎么样.11.1被视为'11 .1'?
>>> 'apple' > 11.1
True
Run Code Online (Sandbox Code Playgroud) 可能重复:
Python从用户读取单个字符
我使用下面的代码.但不是接受单个字符,而是允许用户放置多个字符.
我该如何解决这个问题?
guess = raw_input(':')
guessInLower = guess.lower()
Run Code Online (Sandbox Code Playgroud)