I installed WordPress on EC2 located at /var/www/html/wordpress. I followed the WordPress guide to copy index.php and .htaccess to root, which is /var/www/html, and changed index.php and installed in the admin panel. It works very well if I stick only to the default link, for example: http://www.cubcanfly.com/?p=5however other permalink options do not work, in fact all the permalink options.
My .htaccess is
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
in /etc/httpd/conf/httpd.conf
LoadModule rewrite_module modules/mod_rewrite.so
NOT commented.
Thanks in advance