• Dear All,

    I install apache2 and mod_rewrite and load it:

    apache2ctl -M |grep -i rewrite
    AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message
     rewrite_module (shared)

    Then i create .htaccess and put into my .htaccess the following code that wordpress suggestsed me:

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /~mohsen/wordpress/
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /~mohsen/wordpress/index.php [L]
    </IfModule>

    But When i load a page i get the https://localhost/~mohsen/wordpress/2015/01/30/%DA%A9%D8%AA%D8%A7%D8%A8%D8%AE%D8%A7%D9%86%D9%87-portaudio/
    :
    The requested URL /~mohsen/wordpress/2015/01/30/ú??a?§?¨???§ù?ù?-portaudio/ was not found on this server.

Viewing 1 replies (of 1 total)
  • Hi,

    Just notice, that if you set your server well, this is default WordPress .htaccess

    # BEGIN WordPress
    
    <IfModule mod_rewrite.c>
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    
    # END WordPress

Viewing 1 replies (of 1 total)
  • The topic ‘.htaccess doesn't work’ is closed to new replies.