Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add custom 404 page #38

Open
shrayasr opened this issue Dec 22, 2014 · 7 comments
Open

Add custom 404 page #38

shrayasr opened this issue Dec 22, 2014 · 7 comments

Comments

@shrayasr
Copy link
Member

Right now it shows Host gator's 404 page. This should be handled by us

@whiletruelearn
Copy link
Contributor

@shrayasr

The domain points to hostgator when i tried dig command. Can't we just serve it from github pages by changing the repository name and adding a CNAME record.

krish@krish-Vostro-A860:~/coding/website$ dig chennaipy.org

; <<>> DiG 9.8.1-P1 <<>> chennaipy.org
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 28875
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 0

;; QUESTION SECTION:
;chennaipy.org.         IN  A

;; ANSWER SECTION:
chennaipy.org.      14400   IN  A   192.185.226.101

;; AUTHORITY SECTION:
chennaipy.org.      86400   IN  NS  **ns6629.hostgator.com**
chennaipy.org.      86400   IN  NS  **ns6630.hostgator.com**

;; Query time: 2276 msec
;; SERVER: 220.226.6.104#53(220.226.6.104)
;; WHEN: Thu Jan  8 00:04:27 2015
;; MSG SIZE  rcvd: 102

@shrayasr
Copy link
Member Author

shrayasr commented Jan 8, 2015

This can be done from within pelican itself. Read about it here

shrayasr added a commit to shrayasr/chennaipy-website that referenced this issue Jan 9, 2015
@shrayasr
Copy link
Member Author

shrayasr commented Jan 9, 2015

Oh wait. This will not work since our hosting isn't from Github pages. The way custom 404s work is by using this Github feature.

Looks like this won't be possible for now.

@shrayasr
Copy link
Member Author

@bravegnu can you set up the .htaccess (if apache, i.e.) to serve 404.html as the 404 page? Then we can do this

@shrayasr
Copy link
Member Author

shrayasr commented Mar 7, 2015

ping @bravegnu

@bravegnu
Copy link
Member

bravegnu commented Mar 7, 2015

You can submit a .htaccess file, with the required configuration, it will get shipped to the server, with the rest of the files.

@shrayasr
Copy link
Member Author

shrayasr commented Mar 8, 2015

Aha. I see. Will look into it

On Sat, Mar 7, 2015 at 9:35 PM, Vijay Kumar [email protected]
wrote:

You can submit a .htaccess file, with the required configuration, it will
get shipped to the server, with the rest of the files.


Reply to this email directly or view it on GitHub
#38 (comment).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants