Rewrite引擎不可用,请采纳该建议

Rewrite引擎不可用,请采纳该建议
建议内容:修复该问题
我的服务器配置:
Apache 2.4
MySql 5.7.11
Http 1.1
PHP 8.1.06
错误内容:
Not Found
The requested URL /六猪猪通用维基 was not found on this server.
需要解答的问题:

需要解答的问题

  1. 为何乱码
  2. 如何修复

Comments

  1. 评论 4309

    你只需要安装mod_encoding模块
    将httpd.conf里加载它的语句的注释去掉就行。
  2. 评论 4311

    e打头的只有env_module ext_filter_module 和 expires_module
  3. 评论 4312

    httpd.conf文件里也没有
    LoadModule内容:
    LoadModule access_compat_module "E:/MyWiki/Qampp/server-bin/apache/modules/mod_access_compat.so"
    #LoadModule actions_module "E:/MyWiki/Qampp/server-bin/apache/modules/mod_actions.so"
    LoadModule alias_module "E:/MyWiki/Qampp/server-bin/apache/modules/mod_alias.so"
    LoadModule allowmethods_module "E:/MyWiki/Qampp/server-bin/apache/modules/mod_allowmethods.so"
    LoadModule asis_module "E:/MyWiki/Qampp/server-bin/apache/modules/mod_asis.so"
    LoadModule auth_basic_module "E:/MyWiki/Qampp/server-bin/apache/modules/mod_auth_basic.so"
    #LoadModule auth_digest_module "E:/MyWiki/Qampp/server-bin/apache/modules/mod_auth_digest.so"
    #LoadModule auth_form_module "E:/MyWiki/Qampp/server-bin/apache/modules/mod_auth_form.so"
    #LoadModule authn_anon_module "E:/MyWiki/Qampp/server-bin/apache/modules/mod_authn_anon.so"
    LoadModule authn_core_module "E:/MyWiki/Qampp/server-bin/apache/modules/mod_authn_core.so"
    #LoadModule authn_dbd_module "E:/MyWiki/Qampp/server-bin/apache/modules/mod_authn_dbd.so"
    #LoadModule authn_dbm_module "E:/MyWiki/Qampp/server-bin/apache/modules/mod_authn_dbm.so"
    LoadModule authn_file_module "E:/MyWiki/Qampp/server-bin/apache/modules/mod_authn_file.so"
    #LoadModule authn_socache_module "E:/MyWiki/Qampp/server-bin/apache/modules/mod_authn_socache.so"
    #LoadModule authnz_fcgi_module "E:/MyWiki/Qampp/server-bin/apache/modules/mod_authnz_fcgi.so"
    #LoadModule authnz_ldap_module "E:/MyWiki/Qampp/server-bin/apache/modules/mod_authnz_ldap.so"
    LoadModule authz_core_module "E:/MyWiki/Qampp/server-bin/apache/modules/mod_authz_core.so"
    #LoadModule authz_dbd_module "E:/MyWiki/Qampp/server-bin/apache/modules/mod_authz_dbd.so"
    #LoadModule authz_dbm_module "E:/MyWiki/Qampp/server-bin/apache/modules/mod_authz_dbm.so"
    LoadModule authz_groupfile_module "E:/MyWiki/Qampp/server-bin/apache/modules/mod_authz_groupfile.so"
    LoadModule authz_host_module "E:/MyWiki/Qampp/server-bin/apache/modules/mod_authz_host.so"
    #LoadModule authz_owner_module "E:/MyWiki/Qampp/server-bin/apache/modules/mod_authz_owner.so"
    LoadModule authz_user_module "E:/MyWiki/Qampp/server-bin/apache/modules/mod_authz_user.so"
    LoadModule autoindex_module "E:/MyWiki/Qampp/server-bin/apache/modules/mod_autoindex.so"
    #LoadModule buffer_module "E:/MyWiki/Qampp/server-bin/apache/modules/mod_buffer.so"
    #LoadModule cache_module "E:/MyWiki/Qampp/server-bin/apache/modules/mod_cache.so"
    #LoadModule cache_disk_module "E:/MyWiki/Qampp/server-bin/apache/modules/mod_cache_disk.so"
    #LoadModule cache_socache_module "E:/MyWiki/Qampp/server-bin/apache/modules/mod_cache_socache.so"
    #LoadModule cern_meta_module "E:/MyWiki/Qampp/server-bin/apache/modules/mod_cern_meta.so"
    LoadModule cgi_module "E:/MyWiki/Qampp/server-bin/apache/modules/mod_cgi.so"
    #LoadModule charset_lite_module "E:/MyWiki/Qampp/server-bin/apache/modules/mod_charset_lite.so"
    #LoadModule data_module "E:/MyWiki/Qampp/server-bin/apache/modules/mod_data.so"
    LoadModule dav_module "E:/MyWiki/Qampp/server-bin/apache/modules/mod_dav.so"
    LoadModule dav_fs_module "E:/MyWiki/Qampp/server-bin/apache/modules/mod_dav_fs.so"
    LoadModule dav_lock_module "E:/MyWiki/Qampp/server-bin/apache/modules/mod_dav_lock.so"
    #LoadModule dbd_module "E:/MyWiki/Qampp/server-bin/apache/modules/mod_dbd.so"
    #LoadModule deflate_module "E:/MyWiki/Qampp/server-bin/apache/modules/mod_deflate.so"
    LoadModule dir_module "E:/MyWiki/Qampp/server-bin/apache/modules/mod_dir.so"
    #LoadModule dumpio_module "E:/MyWiki/Qampp/server-bin/apache/modules/mod_dumpio.so"
    LoadModule env_module "E:/MyWiki/Qampp/server-bin/apache/modules/mod_env.so"
    #LoadModule expires_module "E:/MyWiki/Qampp/server-bin/apache/modules/mod_expires.so"
    #LoadModule ext_filter_module "E:/MyWiki/Qampp/server-bin/apache/modules/mod_ext_filter.so"
    #LoadModule file_cache_module "E:/MyWiki/Qampp/server-bin/apache/modules/mod_file_cache.so"
    #LoadModule filter_module "E:/MyWiki/Qampp/server-bin/apache/modules/mod_filter.so"
    #LoadModule headers_module "E:/MyWiki/Qampp/server-bin/apache/modules/mod_headers.so"
    #LoadModule heartbeat_module "E:/MyWiki/Qampp/server-bin/apache/modules/mod_heartbeat.so"
    #LoadModule heartmonitor_module "E:/MyWiki/Qampp/server-bin/apache/modules/mod_heartmonitor.so"
    #LoadModule ident_module "E:/MyWiki/Qampp/server-bin/apache/modules/mod_ident.so"
    #LoadModule imagemap_module "E:/MyWiki/Qampp/server-bin/apache/modules/mod_imagemap.so"
    LoadModule include_module "E:/MyWiki/Qampp/server-bin/apache/modules/mod_include.so"
    #LoadModule info_module "E:/MyWiki/Qampp/server-bin/apache/modules/mod_info.so"
    LoadModule isapi_module "E:/MyWiki/Qampp/server-bin/apache/modules/mod_isapi.so"
    #LoadModule lbmethod_bybusyness_module "E:/MyWiki/Qampp/server-bin/apache/modules/mod_lbmethod_bybusyness.so"
    #LoadModule lbmethod_byrequests_module "E:/MyWiki/Qampp/server-bin/apache/modules/mod_lbmethod_byrequests.so"
    #LoadModule lbmethod_bytraffic_module "E:/MyWiki/Qampp/server-bin/apache/modules/mod_lbmethod_bytraffic.so"
    #LoadModule lbmethod_heartbeat_module "E:/MyWiki/Qampp/server-bin/apache/modules/mod_lbmethod_heartbeat.so"
    #LoadModule ldap_module "E:/MyWiki/Qampp/server-bin/apache/modules/mod_ldap.so"
    #LoadModule logio_module "E:/MyWiki/Qampp/server-bin/apache/modules/mod_logio.so"
    LoadModule log_config_module "E:/MyWiki/Qampp/server-bin/apache/modules/mod_log_config.so"
    LoadModule log_debug_module "E:/MyWiki/Qampp/server-bin/apache/modules/mod_log_debug.so"
    LoadModule log_forensic_module "E:/MyWiki/Qampp/server-bin/apache/modules/mod_log_forensic.so"
    #LoadModule lua_module "E:/MyWiki/Qampp/server-bin/apache/modules/mod_lua.so"
    #LoadModule macro_module "E:/MyWiki/Qampp/server-bin/apache/modules/mod_macro.so"
    LoadModule mime_module "E:/MyWiki/Qampp/server-bin/apache/modules/mod_mime.so"
    #LoadModule mime_magic_module "E:/MyWiki/Qampp/server-bin/apache/modules/mod_mime_magic.so"
    LoadModule negotiation_module "E:/MyWiki/Qampp/server-bin/apache/modules/mod_negotiation.so"
    LoadModule proxy_module "E:/MyWiki/Qampp/server-bin/apache/modules/mod_proxy.so"
    #LoadModule proxy_ajp_module "E:/MyWiki/Qampp/server-bin/apache/modules/mod_proxy_ajp.so"
    #LoadModule proxy_balancer_module "E:/MyWiki/Qampp/server-bin/apache/modules/mod_proxy_balancer.so"
    #LoadModule proxy_connect_module "E:/MyWiki/Qampp/server-bin/apache/modules/mod_proxy_connect.so"
    #LoadModule proxy_express_module "E:/MyWiki/Qampp/server-bin/apache/modules/mod_proxy_express.so"
    #LoadModule proxy_fcgi_module "E:/MyWiki/Qampp/server-bin/apache/modules/mod_proxy_fcgi.so"
    LoadModule proxy_ftp_module "E:/MyWiki/Qampp/server-bin/apache/modules/mod_proxy_ftp.so"
    #LoadModule proxy_html_module "E:/MyWiki/Qampp/server-bin/apache/modules/mod_proxy_html.so"
    #LoadModule proxy_http_module "E:/MyWiki/Qampp/server-bin/apache/modules/mod_proxy_http.so"
    #LoadModule proxy_scgi_module "E:/MyWiki/Qampp/server-bin/apache/modules/mod_proxy_scgi.so"
    #LoadModule proxy_wstunnel_module "E:/MyWiki/Qampp/server-bin/apache/modules/mod_proxy_wstunnel.so"
    #LoadModule ratelimit_module "E:/MyWiki/Qampp/server-bin/apache/modules/mod_ratelimit.so"
    #LoadModule reflector_module "E:/MyWiki/Qampp/server-bin/apache/modules/mod_reflector.so"
    #LoadModule remoteip_module "E:/MyWiki/Qampp/server-bin/apache/modules/mod_remoteip.so"
    LoadModule request_module "E:/MyWiki/Qampp/server-bin/apache/modules/mod_request.so"
    #LoadModule reqtimeout_module "E:/MyWiki/Qampp/server-bin/apache/modules/mod_reqtimeout.so"
    LoadModule rewrite_module "E:/MyWiki/Qampp/server-bin/apache/modules/mod_rewrite.so"
    #LoadModule sed_module "E:/MyWiki/Qampp/server-bin/apache/modules/mod_sed.so"
    LoadModule session_module "E:/MyWiki/Qampp/server-bin/apache/modules/mod_session.so"
    LoadModule session_cookie_module "E:/MyWiki/Qampp/server-bin/apache/modules/mod_session_cookie.so"
    LoadModule session_crypto_module "E:/MyWiki/Qampp/server-bin/apache/modules/mod_session_crypto.so"
    LoadModule session_dbd_module "E:/MyWiki/Qampp/server-bin/apache/modules/mod_session_dbd.so"
    LoadModule setenvif_module "E:/MyWiki/Qampp/server-bin/apache/modules/mod_setenvif.so"
    #LoadModule slotmem_plain_module "E:/MyWiki/Qampp/server-bin/apache/modules/mod_slotmem_plain.so"
    #LoadModule slotmem_shm_module "E:/MyWiki/Qampp/server-bin/apache/modules/mod_slotmem_shm.so"
    #LoadModule socache_dbm_module "E:/MyWiki/Qampp/server-bin/apache/modules/mod_socache_dbm.so"
    #LoadModule socache_memcache_module "E:/MyWiki/Qampp/server-bin/apache/modules/mod_socache_memcache.so"
    LoadModule socache_shmcb_module "E:/MyWiki/Qampp/server-bin/apache/modules/mod_socache_shmcb.so"
    #LoadModule speling_module "E:/MyWiki/Qampp/server-bin/apache/modules/mod_speling.so"
    LoadModule ssl_module "E:/MyWiki/Qampp/server-bin/apache/modules/mod_ssl.so"
    LoadModule status_module "E:/MyWiki/Qampp/server-bin/apache/modules/mod_status.so"
    #LoadModule substitute_module "E:/MyWiki/Qampp/server-bin/apache/modules/mod_substitute.so"
    #LoadModule unique_id_module "E:/MyWiki/Qampp/server-bin/apache/modules/mod_unique_id.so"
    #LoadModule userdir_module "E:/MyWiki/Qampp/server-bin/apache/modules/mod_userdir.so"
    #LoadModule usertrack_module "E:/MyWiki/Qampp/server-bin/apache/modules/mod_usertrack.so"
    #LoadModule version_module "E:/MyWiki/Qampp/server-bin/apache/modules/mod_version.so"
    #LoadModule vhost_alias_module "E:/MyWiki/Qampp/server-bin/apache/modules/mod_vhost_alias.so"
    #LoadModule watchdog_module "E:/MyWiki/Qampp/server-bin/apache/modules/mod_watchdog.so"
    #LoadModule xml2enc_module "E:/MyWiki/Qampp/server-bin/apache/modules/mod_xml2enc.so"
    
    LoadModule php_module "E:/MyWiki/Qampp/server-bin/php8106/php8apache2_4.dll"	
    • Deleted
    • 24.01.2023 11:13 edited
  4. 评论 4313

    这个我也不清楚
    你到一些相关的论坛里求助吧
  5. 评论 4314

    我找到了个新方法:
    httpd.conf添加如下内容:
    AddDefaultCharset gb2312
    还不行的话就改为:
    AddDefaultCharset UTF-8
  6. 评论 4317

    我测试了他
    即使显示乱码,依然能够访问
    你的错误大概率是没有通过.htaccess文件启用RewriteEngine
    通过在www根目录创建.htaccess文件并输入如下内容来启用:

    用于启用重写引擎的脚本

    RewriteEngine On
Log in or create an account to post a comment.