Search…

X3 Photo Gallery Support Forums

Search…
 
igor.bezkrovny
Topic Author
Posts: 16
Joined: 02 Aug 2012, 08:00

Gallery 404 Error Page

20 Aug 2012, 05:30

Hi,

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
or
Code
ErrorDocument 404 /index.php/#/ErrorPage
result: in case of 404 error (page not found) DEFAULT page of website is launched. Error Page is NOT launched

2. .htaccess file:
Code
ErrorDocument 404 http://websitename.com/#/ErrorPage
result: in case of 404 error (page not found) ErrorPage is correctly launched
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
while file error_page_redirection.html contains meta-equiv and js redirection to correct website. so, google see correct 404 status in page header, and my error page /#/ErrorPage is launched correctly from html file)

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
index.php should understand the parameters above by $_GET and open imagevue 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!
 
User avatar
Nick
Imagevue Hitman
Posts: 2872
Joined: 02 May 2006, 09:13

Re: Gallery 404 Error Page

21 Aug 2012, 01:11

firedev.com
 
igor.bezkrovny
Topic Author
Posts: 16
Joined: 02 Aug 2012, 08:00

Re: Gallery 404 Error Page

21 Aug 2012, 02:32

so easy...
and it works

Many Thanks, Nick!