English 中文(简体)
现场在RURL与密码调取后,在没有线索的情况下,打上了CSS或图像。
原标题:Site won t load CSS or images without trailing / after URL with Codeigniter

我在《法典》中使用了航道,把冰洁带入我的网页。 我也修改了离散文件,以从URL中删除索引.php。

除1个问题外,所有工作都很出色——当我去读到URL时,它就赢得了CSS或图像的装货,除非在URL中添加线索。

For example:

mysite.com/blah Does NOT work

mysite.com/blah/ DOES work

Probaby Some in the .htaccess file? 我在此档案中:

RewriteEngine on
RewriteCond $1 !^(index.php|images|css|js|user_photos|favicon|robots.txt)
RewriteRule ^(.*)$ /subdirectory/index.php/$1 [L]

任何想法? 我真的希望用户能够进入该网页,即使他们没有添加线索。

最佳回答

使用: <条码><?

http://www.ohchr.org。

<link rel="stylesheet" href="<?php echo base_url();?>theme/css/main.css" />

页: 1

RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ /subdirectory/index.php/$1 [L]
RewriteCond $1 !^(index.php|includes|theme|media|robots.txt|fonts)
问题回答

暂无回答




相关问题
Ignore symlinks in clean URL s in .htaccess

Example URL: example.com/user /user is both a symlinked directory and a valid URL to content on my site. I user Horde Routes to request the content and all requests to the site go through index.php. ...

.htaccess File Options -Indexes on Subdirectories

I have the following .htaccess line, simple no indexes on root. Options -Indexes What do we add so it propagates to any sub directory instead of having to create one file for each? One .htaccess on ...

Mod Rewrite ignoring -d

After a day or two, I am still fighting with Mod Rewrite. It seems that 60% of my development time is spent battling the server. My current URL structure is such that all http://example.com/xyz and ...

ErrorDocument 404 Not Sending Referrer Information: PHP

I m using a standard htaccess ErrorDocument 404 to redirect users to a new page. In order to customize the 404, I need to know their referrer information (from the page they Tried to visit). $...

Find all htaccess files on server [closed]

I m looking for a Linux command to go through all the directories on my server and find all .htaccess files. The output would be a list of all those files with full path, creation/modification date ...

301 Redirect Help with Dynamic URL s and Multiple Id s

I just did a redesign for www.wildchildclothes.com which has a new URL structure. The old site ran on Zen Cart and had a bad URL structure. Here are some examples of what I want to redirect from: OLD:...

热门标签