Creating Good Permalinks in WAMP

I can't switch to pretty permalinks in WAMP. If you change any form other than the default, an error 404 appears. I enabled it rewrite_modulein Apache. I searched for the problem and found that the httpd.conf file needs to be modified. My httpd.conf file matches

<Directory />
    Options Indexes FollowSymLinks
    AllowOverride All
    Order deny,allow
    Deny from all
</Directory>

I also checked that the .htaccess file is being created. It reads like

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /vit%20web/events/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /vit%20web/events/index.php [L]
</IfModule>

# END WordPress
+3
source share
3 answers

Did you restart Apache after editing httpd.conf?

mod_rewrite <IfModule>...</IfModule> WordPress - 500 Server Error, mod_rewrite .

, <Directory /> <Directory "C:/path/to/server/root"> ( , , Windows).

, ;

Order allow,deny
Allow from all
+5

, , mod_rewite Wamp.

Click Wamp -> Apache -> Apache Modules -> rewrite_module

, % postname%,

,

+13

: , www (..

RewriteBase /subdirectory/

.htaccess c:\wamp\www.

0

Source: https://habr.com/ru/post/1753206/


All Articles