Home Backend Development PHP Tutorial .htaccess不起作用啦!该如何解决

.htaccess不起作用啦!该如何解决

Jun 13, 2016 am 10:58 AM
css htaccess nbsp

.htaccess不起作用啦!
本帖最后由 weihua99 于 2012-03-29 02:37:04 编辑 .htaccess内容如下:
RewriteEngine On
RewriteBase /
RewriteRule ^cms/5gameweb/statics/css/5g/css/(.*\.css) /combine.php?type=css&files=$1
RewriteRule ^cms/5gameweb/statics/css/5g/js/(.*\.js) /combine.php?type=javascript&files=$1

Windows7环境,安装phpStudy集成环境。

httpd.conf已经修改了如下内容:

LoadModule rewrite_module modules/mod_rewrite.so
Options All
AllowOverride All

AccessFileName .htaccess

无法生效,.htaccess编码用EditPlus也改为ANSI了。.htaccess跟combine.php文件都放在根目录。不知道还会有什么原因。。。
------解决方案--------------------
重新建一个试试
------解决方案--------------------

引用:
重新建一个试试


重建一个.htaccess文件吗?这没啥区别吧,我实在找不出还有哪里会出问题额。
------解决方案--------------------
顶上去,来者有分啊。
------解决方案--------------------
.htaccess不是应该UTF-8吗?
------解决方案--------------------
引用:
.htaccess不是应该UTF-8吗?


额,改UTF-8也不行
------解决方案--------------------
该回复于2012-03-30 09:14:08被版主删除
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

Repo: How To Revive Teammates
1 months ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
2 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
1 months ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

What language is the browser plug-in written in? What language is the browser plug-in written in? May 08, 2024 pm 09:36 PM

Browser plug-ins are usually written in the following languages: Front-end languages: JavaScript, HTML, CSS Back-end languages: C++, Rust, WebAssembly Other languages: Python, Java

How to set unknown attributes in vscode vscode method to set unknown attributes How to set unknown attributes in vscode vscode method to set unknown attributes May 09, 2024 pm 02:43 PM

1. First, open the settings icon in the lower left corner and click the settings option. 2. Then, find the CSS column in the jumped window. 3. Finally, change the drop-down option in the unknownproperties menu to the error button.

Graphical steps for setting the default properties of CSS in Visual Studio 2019 Graphical steps for setting the default properties of CSS in Visual Studio 2019 May 09, 2024 pm 02:01 PM

1. Open Visual Studio 2019, find its option settings, and click CSS. 2. Here you can see the technical settings of the following attributes. 3. Now you can set text and fill borders here. 4. At this time, you can also set the floating positioning here. 5. At this moment, you can also set the border and background here to complete the operation. 6. Finally, click the OK button here to set the CSS default properties.

How to isolate styles in components in vue How to isolate styles in components in vue May 09, 2024 pm 03:57 PM

Style isolation in Vue components can be achieved in four ways: Use scoped styles to create isolated scopes. Use CSS Modules to generate CSS files with unique class names. Organize class names using BEM conventions to maintain modularity and reusability. In rare cases, it is possible to inject styles directly into the component, but this is not recommended.

How to wrap alert in javascript How to wrap alert in javascript May 08, 2024 pm 10:00 PM

How to wrap the alert box in JavaScript: use \n escape character: const myString = "First line\nSecond line\nThird line"; alert(myString);Use HTML <br> tag: const myString = " First line<br>Second line<br>Third line"; alert(myString); Set the CSS white-space property: const myString = First line, Second line, Third line; alert(myString);

How to register for Bitstamp exchange pro? Is it safe? Is it formal? How to register for Bitstamp exchange pro? Is it safe? Is it formal? Aug 13, 2024 pm 06:36 PM

How to register BitstampPro? Visit the BitstampPro website. Fill in your personal information and email address. Create a password and accept the terms. Verify email address. Is BitstampPro safe? Authentication required. Enforce the use of two-factor authentication. Most assets are stored in cold storage. Use HTTPS to encrypt communication. Conduct regular security audits. Is BitstampPro legitimate? Registered in Luxembourg. Regulated by the Luxembourg Financial Supervisory Committee. Comply with anti-money laundering and know-your-customer regulations.

The difference between v-show and v-if in vue The difference between v-show and v-if in vue May 09, 2024 pm 01:48 PM

The main difference between v-show and v-if in Vue is: v-show: controls the display of elements by changing the display style attribute. It is lightweight and performance-friendly for elements that frequently switch to display/hide; but it will retain the space occupied by the elements. , may cause flickering. v-if: Insert or delete elements through conditions, affecting the layout flow and avoiding flickering; however, the cost of destroying and re-creating elements is high, and it is not suitable for frequently switching displayed/hidden elements.

How to introduce pictures in vue How to introduce pictures in vue May 08, 2024 pm 05:21 PM

There are two main ways to introduce images in Vue: Relative paths: Place the image in the same directory as the Vue component, using relative path references. Absolute path: Use absolute paths to reference images starting from the project root directory.

See all articles