Error 404, page not found

abar -  
elgazar Posted messages 5776 Registration date   Status Membre Last intervention   -
Hello everyone.

I have come across a problem that I can't seem to resolve, despite the numerous topics on the same subject...

So, here it is, I decided to migrate my site to a remote server using the WordPress WP clone plugin.

Everything works perfectly on the homepage, but I can't access the "posts" or other "pages".

Apache is indeed in "mod_rewrite" mode, and here is the content of the ".htaccess":
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress

The site is indeed located at the root of the www directory, in a folder named en.aladdincn.com.

Could you help me?

Thank you in advance!

3 réponses

Dinath Posted messages 1697 Status Contributeur sécurité 218
 
Hello,

You have a directive to add to your VHOST, two in fact.

<Directory "/var/www/en.aladdincn.com">

# allows following symlinks
Options FollowSymLinks

# allows .htaccess in the directory
AllowOverride All

</Directory>


@Dinath_ - Security Contributor
0
abar
 
Hi!
Thank you, I just noticed that the permalinks worked with numbers; it's only when I try to customize them with a post name that they don't work anymore.
0
Dinath Posted messages 1697 Status Contributeur sécurité 218
 
Hi,

Yes, because your .htaccess is not supported.

When you load it directly with the ID, it uses the parameters (with ?)
0
abar > Dinath Posted messages 1697 Status Contributeur sécurité
 
I admit that I have a bit of trouble understanding, where is the VHOST to modify? In the Apache files?
0