.htaccess doesn't work on xampp (windows 7)

Jhonatan Sandoval

I'm setting my .htaccess file right now to use friendly urls (manually). But, when i go to the url the server shows me Error 404.

RewriteEngine on

RewriteCond %{SCRIPT_FILENAME} !-d  
RewriteCond %{SCRIPT_FILENAME} !-f  

Rewriterule ^register$ register.php 

I'm really sure that mod_rewrite is enabled because i see it when use phpinfo().

zx81

Even though mod-rewrite is enabled, by default it is not enabled for .htaccess files.

Hold Your Breath

  • Open xampp control panel
  • Stop Apache
  • Click the Config button on the Apache row, and select httpd.conf
  • In that file, search for something like xampp/htdocs">
  • A bit lower, you may see a line like this: # AllowOverride All. Remove the #, which is a comment
  • Alternately, search for AllowOverride All, make sure it is in the right section, and remove the comment #
  • Save the file
  • Restart Apache, say a prayer, cross your fingers and hold your breath

本文收集自互联网,转载请注明来源。

如有侵权,请联系[email protected] 删除。

编辑于
0

我来说两句

0条评论
登录后参与评论

相关文章

来自分类Dev

XAMPP中的.htaccess文件在Windows 7上不起作用

来自分类Dev

.htaccess在xampp上不起作用(Windows 7)

来自分类Dev

XAMPP中的.htaccess文件在Windows 7上不起作用

来自分类Dev

Windows Phone Toolkit localization doesn't work

来自分类Dev

在Windows 7的XAMPP 1.8.3上运行ImageMagick

来自分类Dev

无法设置PhpMyAdmin密码(XAMPP + Windows 7)

来自分类Dev

在Windows 7的XAMPP 1.8.3上运行ImageMagick

来自分类Dev

Codeigniter,Windows,Xampp,如何使用htaccess摆脱斜杠?

来自分类Dev

.htaccess 在 xampp 中不起作用(Windows 10)

来自分类Dev

如何:在XAMPP(Windows 7/8/10)上安装Memcache

来自分类Dev

在XAMPP 1.8.3 Windows 7安装上升级PHP

来自分类Dev

magento无法在Windows 7上使用xampp 1.8.3 localhost安装

来自分类Dev

更改MySQL服务器的XAMPP Windows 7端口

来自分类Dev

使用Xampp在Windows 7上安装Laravel 5.1错误

来自分类Dev

SendKeys doesn't always work

来自分类Dev

Localization doesn't work for german?

来自分类Dev

Android, setReuseAddress doesn't work

来自分类Dev

HttpPost addHeader doesn't work

来自分类Dev

html footer doesn't work

来自分类Dev

Hibernate ImprovedNamingStrategy doesn't work

来自分类Dev

Mouse clicks don't work on official SproutCore Demo sites on certain Windows 7 computers

来自分类Dev

在64位xampp Windows 10中具有.htaccess的搜索引擎友好URL

来自分类Dev

.htaccess重定向在OSX本地有效,但不适用于Windows XAMPP

来自分类Dev

在 Windows 10 上的自定义 php (xampp) 中使用 .htaccess 重写 URL

来自分类Dev

关于 xampp 2 问题的 .htaccess

来自分类Dev

Windows Azure和Xampp

来自分类Dev

使用Windows 7和XAMPP服务器的本地git存储库

来自分类Dev

在Windows 7的Xampp上使用最基本的Ajax来检查Internet连接

来自分类Dev

在Windows 7 32位上安装了Xampp。启动时出错

Related 相关文章

  1. 1

    XAMPP中的.htaccess文件在Windows 7上不起作用

  2. 2

    .htaccess在xampp上不起作用(Windows 7)

  3. 3

    XAMPP中的.htaccess文件在Windows 7上不起作用

  4. 4

    Windows Phone Toolkit localization doesn't work

  5. 5

    在Windows 7的XAMPP 1.8.3上运行ImageMagick

  6. 6

    无法设置PhpMyAdmin密码(XAMPP + Windows 7)

  7. 7

    在Windows 7的XAMPP 1.8.3上运行ImageMagick

  8. 8

    Codeigniter,Windows,Xampp,如何使用htaccess摆脱斜杠?

  9. 9

    .htaccess 在 xampp 中不起作用(Windows 10)

  10. 10

    如何:在XAMPP(Windows 7/8/10)上安装Memcache

  11. 11

    在XAMPP 1.8.3 Windows 7安装上升级PHP

  12. 12

    magento无法在Windows 7上使用xampp 1.8.3 localhost安装

  13. 13

    更改MySQL服务器的XAMPP Windows 7端口

  14. 14

    使用Xampp在Windows 7上安装Laravel 5.1错误

  15. 15

    SendKeys doesn't always work

  16. 16

    Localization doesn't work for german?

  17. 17

    Android, setReuseAddress doesn't work

  18. 18

    HttpPost addHeader doesn't work

  19. 19

    html footer doesn't work

  20. 20

    Hibernate ImprovedNamingStrategy doesn't work

  21. 21

    Mouse clicks don't work on official SproutCore Demo sites on certain Windows 7 computers

  22. 22

    在64位xampp Windows 10中具有.htaccess的搜索引擎友好URL

  23. 23

    .htaccess重定向在OSX本地有效,但不适用于Windows XAMPP

  24. 24

    在 Windows 10 上的自定义 php (xampp) 中使用 .htaccess 重写 URL

  25. 25

    关于 xampp 2 问题的 .htaccess

  26. 26

    Windows Azure和Xampp

  27. 27

    使用Windows 7和XAMPP服务器的本地git存储库

  28. 28

    在Windows 7的Xampp上使用最基本的Ajax来检查Internet连接

  29. 29

    在Windows 7 32位上安装了Xampp。启动时出错

热门标签

归档