2011-08-02, 07:40 AM
I am using MyBB and Apache. Here is my .htaccess code:
If I visit a non-exist url www.example.com/xxxxx/ it did display the homepage index.php However, it did a 302 redirect, which means the url www.example.com/xxxxx/ remains the same in the bar.
I want a 301 redirect! How can I do this?
Thanks a lot!
<IfModule mod_rewrite.c>
ErrorDocument 403 /index.php
ErrorDocument 404 /index.php
</IfModule>
If I visit a non-exist url www.example.com/xxxxx/ it did display the homepage index.php However, it did a 302 redirect, which means the url www.example.com/xxxxx/ remains the same in the bar.
I want a 301 redirect! How can I do this?
Thanks a lot!