I have question about redirection to ImageVue page from .htaccess in case of 404/401/... error.
Searched through forum and didn't found answer.
I tried:
1. .htaccess file:
Code
ErrorDocument 404 /#/ErrorPage
Code
ErrorDocument 404 /index.php/#/ErrorPage
2. .htaccess file:
Code
ErrorDocument 404 http://websitename.com/#/ErrorPage
critical drawback: Google will drop all website pages from index because website will return error 302 instead of 404. It is because of external redirection (http://xxx). Google in webmaster tools says "We've detected that your server returns a status of 200 (found successfully) for pages that don't exist.".
3. .htaccess file:
Code
ErrorDocument 404 /error_page_redirection.html
result:
- google see 2 redirections (I don't know if it is ok)
- chrome correctly redirects to /#/ErrorPage
- firefox 9 shows its own error page
It is two solutions I see:
1. if anyone knows how to send '#' (sharp, anchor) sign to imagevue from .htaccess.
- I didn't found how to do this
2. If index.php will be able to check error code and open page
for example, .htaccess:
Code
ErrorDocument 404 /index.php?error=404&page=ErrorPage
I can modify php by myself but how to tell ImageVue2.swf to load apropriate page WITHOUT php/js/meta redirections to /#/ErrorPage from index.php.
I hope someone can help me:)
Many Thanks!