2013-07-13, 05:24 PM
On my website goask.it, I'm trying to redirect /index.php to /. In order to do so, I've made a changing in my htaccess.txt file. Note, not the .htaccess, since there are none. I'll get back to that soon.
The Google SEO plugin requires me to add piece of code in the .htaccess too. I've added it to the htaccess.txt. Now, because it's not the .htaccess, apparently it doesn't do much. So after renaming it to .htaccess, I get an error 500. Am I doing something horribly wrong?
On the Plugin tab, Google SEO plugin gives me this warning:
I suppose it keeps telling me because it can't see I did it, because the .htaccess refuse to work properly?!
I wouldn't be surprised if it's an Error 40, but I can't really see what I do wrong? What do I do?
Thanks,
Jonas.
The Google SEO plugin requires me to add piece of code in the .htaccess too. I've added it to the htaccess.txt. Now, because it's not the .htaccess, apparently it doesn't do much. So after renaming it to .htaccess, I get an error 500. Am I doing something horribly wrong?
On the Plugin tab, Google SEO plugin gives me this warning:
Add to .htaccess:
RewriteEngine on
# Some hosts require RewriteBase to make RewriteRules work.
RewriteBase /
# Google SEO workaround for search.php highlights:
# Make this rule the first rewrite rule in your .htaccess!
RewriteRule ^([^&]*)&(.*)$ http://goask.it/$1?$2 [L,QSA,R=301]
# Google SEO 404:
ErrorDocument 404 /misc.php?google_seo_error=404
# Google SEO Sitemap:
RewriteRule ^sitemap\-([^./]+)\.xml$ misc.php?google_seo_sitemap=$1 [L,QSA,NC]
I suppose it keeps telling me because it can't see I did it, because the .htaccess refuse to work properly?!
I wouldn't be surprised if it's an Error 40, but I can't really see what I do wrong? What do I do?
Thanks,
Jonas.