Permalinks können nicht funktionieren!

Ich kann WordPress nicht mit schönen Permalinks auf meinem Fedora LAMP Server arbeiten lassen. Wenn ich sie setze und auf eine Seite / einen Postlink klicke, bekomme ich ein “” Hoppla! Dieser Link scheint gebrochen zu sein. ”

  • Die .htaccess-Datei ist schreibbar und wird aktualisiert.
  • mod_rewrite-Modul scheint in meine httpd.conf geladen zu sein (siehe unten)
  • Die Fehler in meinem Apache-Log sagen einfach “Dokument nicht gefunden”.

Ich bin am Ende meines Seils! Hier ist die httpd.conf :

### Section 1: Global Environment # start the rewrite engine (I ADDED THIS) RewriteEngine on ServerTokens OS ServerRoot "/etc/httpd" PidFile run/httpd.pid Timeout 120 KeepAlive Off MaxKeepAliveRequests 100 KeepAliveTimeout 15  StartServers 8 MinSpareServers 5 MaxSpareServers 20 ServerLimit 256 MaxClients 256 MaxRequestsPerChild 4000   StartServers 2 MaxClients 150 MinSpareThreads 25 MaxSpareThreads 75 ThreadsPerChild 25 MaxRequestsPerChild 0  # # Listen: Allows you to bind Apache to specific IP addresses and/or # ports, in addition to the default. See also the  # directive. # # Change this to Listen on specific IP addresses as shown below to # prevent Apache from glomming onto all bound IP addresses (0.0.0.0) # #Listen 12.34.56.78:80 Listen 80 LoadModule auth_basic_module modules/mod_auth_basic.so LoadModule auth_digest_module modules/mod_auth_digest.so LoadModule authn_file_module modules/mod_authn_file.so LoadModule authn_alias_module modules/mod_authn_alias.so LoadModule authn_anon_module modules/mod_authn_anon.so LoadModule authn_dbm_module modules/mod_authn_dbm.so LoadModule authn_default_module modules/mod_authn_default.so LoadModule authz_host_module modules/mod_authz_host.so LoadModule authz_user_module modules/mod_authz_user.so LoadModule authz_owner_module modules/mod_authz_owner.so LoadModule authz_groupfile_module modules/mod_authz_groupfile.so LoadModule authz_dbm_module modules/mod_authz_dbm.so LoadModule authz_default_module modules/mod_authz_default.so LoadModule ldap_module modules/mod_ldap.so LoadModule authnz_ldap_module modules/mod_authnz_ldap.so LoadModule include_module modules/mod_include.so LoadModule log_config_module modules/mod_log_config.so LoadModule logio_module modules/mod_logio.so LoadModule env_module modules/mod_env.so LoadModule ext_filter_module modules/mod_ext_filter.so LoadModule mime_magic_module modules/mod_mime_magic.so LoadModule expires_module modules/mod_expires.so LoadModule deflate_module modules/mod_deflate.so LoadModule headers_module modules/mod_headers.so LoadModule usertrack_module modules/mod_usertrack.so LoadModule setenvif_module modules/mod_setenvif.so LoadModule mime_module modules/mod_mime.so LoadModule dav_module modules/mod_dav.so LoadModule status_module modules/mod_status.so LoadModule autoindex_module modules/mod_autoindex.so LoadModule info_module modules/mod_info.so LoadModule dav_fs_module modules/mod_dav_fs.so LoadModule vhost_alias_module modules/mod_vhost_alias.so LoadModule negotiation_module modules/mod_negotiation.so LoadModule dir_module modules/mod_dir.so LoadModule actions_module modules/mod_actions.so LoadModule speling_module modules/mod_speling.so LoadModule userdir_module modules/mod_userdir.so LoadModule alias_module modules/mod_alias.so LoadModule rewrite_module modules/mod_rewrite.so LoadModule proxy_module modules/mod_proxy.so LoadModule proxy_balancer_module modules/mod_proxy_balancer.so LoadModule proxy_ftp_module modules/mod_proxy_ftp.so LoadModule proxy_http_module modules/mod_proxy_http.so LoadModule proxy_connect_module modules/mod_proxy_connect.so LoadModule cache_module modules/mod_cache.so LoadModule suexec_module modules/mod_suexec.so LoadModule disk_cache_module modules/mod_disk_cache.so LoadModule cgi_module modules/mod_cgi.so # # The following modules are not loaded by default: # #LoadModule cern_meta_module modules/mod_cern_meta.so #LoadModule asis_module modules/mod_asis.so Include conf.d/*.conf User apache Group apache ### Section 2: 'Main' server configuration ServerAdmin root@localhost UseCanonicalName Off DocumentRoot "/var/www/html"  Options FollowSymLinks AllowOverride None   Options Indexes FollowSymLinks AllowOverride None Order allow,deny Allow from all   UserDir disabled  DirectoryIndex index.html index.html.var # # AccessFileName: The name of the file to look for in each directory # for additional configuration directives. See also the AllowOverride # directive. # AccessFileName .htaccess  Order allow,deny Deny from all  TypesConfig /etc/mime.types DefaultType text/plain  # MIMEMagicFile /usr/share/magic.mime MIMEMagicFile conf/magic  HostnameLookups Off ErrorLog logs/error_log CustomLog logs/access_log combined ServerSignature On Alias /icons/ "/var/www/icons/"  Options Indexes MultiViews FollowSymLinks AllowOverride None Order allow,deny Allow from all   # Location of the WebDAV lock database. DAVLockDB /var/lib/dav/lockdb  ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"  AllowOverride None Options None Order allow,deny Allow from all  IndexOptions FancyIndexing VersionSort NameWidth=* HTMLTable Charset=UTF-8 ReadmeName README.html HeaderName HEADER.html IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t AddDefaultCharset UTF-8 AddType application/x-compress .Z AddType application/x-gzip .gz .tgz AddType application/x-x509-ca-cert .crt AddType application/x-pkcs7-crl .crl AddHandler type-map var AddType text/html .shtml AddOutputFilter INCLUDES .shtml Alias /error/ "/var/www/error/"    AllowOverride None Options IncludesNoExec AddOutputFilter Includes html AddHandler type-map var Order allow,deny Allow from all LanguagePriority en es de fr ForceLanguagePriority Prefer Fallback    # # Proxy Server directives. Uncomment the following lines to # enable the proxy server: # # #ProxyRequests On # # # Order deny,allow # Deny from all # Allow from .example.com # # # Enable/disable the handling of HTTP/1.1 "Via:" headers. # ("Full" adds the server version; "Block" removes all outgoing Via: headers) # Set to one of: Off | On | Full | Block # #ProxyVia On NameVirtualHost *:80  # start the rewrite engine RewriteEngine on ServerName www.example.com DocumentRoot /var/www/html/com_example_www  

Solutions Collecting From Web of "Permalinks können nicht funktionieren!"

Innerhalb Ihrer Konfiguration haben Sie Folgendes:

  Options FollowSymLinks AllowOverride None  

Sie sollten es wie folgt ändern:

  Options FollowSymLinks AllowOverride All  

Mit der AllowOverride Direktive kann die .htaccess Datei gelesen werden. Wenn Sie immer noch Probleme haben, stellen Sie sicher, dass Sie dies in den ändern

  

blockieren Sie auch (abhängig davon, wo sich Ihre Site befindet).

Hoffe das hilft!