2011-12-13 5 views
0

confluence-3.2.1_0
Atlassian Confluence에서 404 페이지의 새 페이지로 리디렉션하는 방법 (현재 공간에서 페이지 만들기)?Atlassian Confluence - 404의 새 페이지로 리디렉션 오류

<error-page> 
    <error-code>404</error-code> 
    <location>/fourohfour.action</location> 
    </error-page> 

같은 사람 : :

<error-page> 
    <error-code>404</error-code> 
    <location>/createpage.action</location> 
    </error-page> 
+0

명확히하려면 : 편집 페이지에서 비슷한 페이지 목록을 보여주는 Confluence 오류 페이지 대신 편집 모드에서 대상 페이지를 여는 mediawiki 기능을 원하십니까? – Underverse

답변

1

/pages/createpage-entervariables.action?spaceKey=KEY

은 내가 web.xml 파일에서 작업을 변경할 필요가 있다고 생각 하지만 열쇠가 ​​없어서 문제가 있다고 생각합니다.

+0

어쩌면 스페이스 키를 가져 오는 기능이 있습니까? – iRoller

0

steps listed here 인 경우 404 페이지를 업데이트하는 대신 링크를 업데이트하여 페이지가 있으면 사용자가 리디렉션되고 그렇지 않으면 페이지를 만들 수 있습니다. 조금 다른 내 대답은, (어떤 페이지를 작성, 난 그냥 주 SPACE로 리디렉션 없음) 동안

링크는

http://xxxxx/pages/createpage.action?spaceKey=experiment&title=this+does+not+exist&linkCreation=true&fromPageId=623770 
0

스타일 -의 있습니다, 여기입니다. 아주 간단하고 가능하면 원하는 것을 위해 맞출 수 있습니다.

참고 : 404.vm은 fourohfour.action에서 호출 한 것입니다. web.xml 만 남겨두고 404.vm을 편집하십시오!

sudo mv /opt/atlassian/confluence/confluence/404.vm /opt/atlassian/confluence/confluence/404.vm.original 
sudo nano /opt/atlassian/confluence/confluence/404.vm 

<!DOCTYPE HTML> 

<meta charset="UTF-8"> 
<meta http-equiv="refresh" content="1; url=http://example.com/url"> 

<script> 
    window.location.href = "http://example.com/url" 
</script> 

<title>Page Redirection</title> 

<!-- Note: don't tell people to `click` the link, just tell them that it is a link. --> 
If you are not redirected automatically, follow the <a href='link'>http://example/url'>link to example</a>