Hello, I just got template with AIT Framework and I recieve 404 error if I set permalinks to /%postname%/ but if I change template I dont have this problem. So it must be problem because of this template - maybe in framework.
Any idea please? :)
So I was working a little bit and now posts permalinks are working, but I dont know if I save or update post then 404 error will show up again my httaccess
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
RewriteEngine On
RewriteCond %{HTTP_HOST} ^product-investigation.com
RewriteRule (.*) http://www.my-site.com/$1 [R=301,L]
RewriteBase /
RewriteRule ^index\.php$ - [L]
# uploaded files
RewriteRule ^files/(.+) wp-includes/ms-files.php?file=$1 [L]
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]
RewriteRule . index.php [L]
<FilesMatch "\.(woff|ico|jpg|jpeg|png|gif|js|css|swf|pdf|flv|mp3)$">
<IfModule mod_expires.c>
ExpiresActive on
ExpiresDefault "access plus 14 days"
Header set Cache-Control "public"
</IfModule>
</FilesMatch>
<FilesMatch "\.(html|htm|xml|txt|xsl)$">
Header set Cache-Control "max-age=7200, must-revalidate"
</FilesMatch>
phppoet answers:
create .htaccess file inside root directory of your site and put this code into it.
# 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
It will work .
Chymmi comments:
It doesnt work :) as I said it works with other templates but not with this :/ - I also tried insert it into my framework htaccess and it doesnt work
/wp-content/themes/directory/AIT - htaccess
so I have two htaccess :/
Kiet Luong answers:
Hi, If possible please give me login, I will take a look at it to see how this framework does.
Im available on skype: [[LINK href="http://wpquestions.com/user/profile/id/10125"]]kioluong[[/LINK]]
Regards !