English 中文(简体)
JPATH具体规定了“地方/城市/城市/城市”
原标题:JPATH specifies "localhost/var/www"

......和任何时间,我尝试过一个简单的例子,即<条码>SITE_NAME /includes/js/...。

是否有通过Joomla混淆这种说法的途径? 我尝试了一切,但出于某种原因,我机器上的道路系统似乎被打破。 我不敢肯定,它是否唱了Joomla,或者它只是我的组合。 如果没有Joomla,谁会知道如何混淆?

<>Update>

不仅如此,而且通过我的机器指明的相对途径,都拒绝让它进入我网站的文件根基。 例如,我可以不把这条路引向<条码>。 相反,它只是参考<代码>http:// localhost/path/to/file。 当然,我收到404份。

<>Update>

此外,当我尝试使用<代码>(http://)向服务器提出请求时,我得出相同结果,但结果现为<编码>http:// localhost/somesite.com;

<>Update>

我举了一个全胜的例子:

(摘自 Chrome的ole):

GET http://localhost/patention/%3C%22http://ajax.googleapis.com/ajax/libs/jquery/1.7.0/jquery.min.js;%22 404 (Not Found) 

页: 1 我有(我对此一无所知)。

##  Can be commented out if causes errors, see notes above.
Options +FollowSymLinks

#
#  mod_rewrite in use

RewriteEngine On

########## Begin - Rewrite rules to block out some common exploits
## If you experience problems on your site block out the operations listed below
## This attempts to block the most common type of exploit `attempts` to Joomla!
#
## Deny access to extension xml files (uncomment out to activate)
#<Files ~ ".xml$">
#Order allow,deny
#Deny from all
#Satisfy all
#</Files>
## End of deny access to extension xml files
RewriteCond %{QUERY_STRING} mosConfig_[a-zA-Z_]{1,21}(=|\%3D) [OR]
# Block out any script trying to base64_encode crap to send via URL
RewriteCond %{QUERY_STRING} base64_encode.*(.*) [OR]
# Block out any script that includes a <script> tag in URL
RewriteCond %{QUERY_STRING} (<|%3C).*script.*(>|%3E) [NC,OR]
# Block out any script trying to set a PHP GLOBALS variable via URL
RewriteCond %{QUERY_STRING} GLOBALS(=|[|\%[0-9A-Z]{0,2}) [OR]
# Block out any script trying to modify a _REQUEST variable via URL
RewriteCond %{QUERY_STRING} _REQUEST(=|[|\%[0-9A-Z]{0,2})
# Send all blocked request to homepage with 403 Forbidden error!
RewriteRule ^(.*)$ index.php [F,L]
#
########## End - Rewrite rules to block out some common exploits

#  Uncomment following line if your webserver s URL
#  is not directly related to physical file paths.
#  Update Your Joomla! Directory (just / for root)

# RewriteBase /


########## Begin - Joomla! core SEF Section
#
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !^/index.php
RewriteCond %{REQUEST_URI} (/|.php|.html|.htm|.feed|.pdf|.raw|/[^.]*)$  [NC]
RewriteRule (.*) index.php
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
#
########## End - Joomla! core SEF Section
最佳回答

Are you trying to include a file ( from php ) 或 want to add some kind of link to the output? If you want to include a file, you should do something like this:

INCLUDE JPATH_ROOT . DS .  my  . DS .  folder  . DS .  myfile.php ;

但是,如果你想要在你的档案中添加一个文字的话,你就应该以其中一种方式这样做(两者都应奏效):

<a href="<?php echo JUri::root() .  includes/js/myfile.js "> ....

<a href="/includes/js/myfile.js">...

The second option should w或k fine as long as /includes is in your joomla root. If it is still not w或king, could you post an example of code where you try to use that "include"?

我希望它能帮助!

问题回答

暂无回答




相关问题
Using SimplePie with CodeIgniter and XAMPP

I am using CodeIgniter 1.7.2 with XAMPP 1.7.2 on a Windows computer. I am trying to make use of SimplePie. I followed all the instructions I could find: a copy of simplepie.inc is in my applications/...

Multiple Sites with common files

I have developed over 50 sites that all use the exact same files other than CSS and IMAGES, I currently duplicate the files each time I create a new site and upload different css and images. What ...

http server validation

I finish a litle http server, writing from scratch. I would like to be sure that my imlementation is conforme to the HTTP specifications. W3C give us tools for HTML/XML conformance, but i see nothing ...

热门标签