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

404 error #22

Closed
jevo99 opened this issue Aug 21, 2014 · 9 comments
Closed

404 error #22

jevo99 opened this issue Aug 21, 2014 · 9 comments
Labels

Comments

@jevo99
Copy link

jevo99 commented Aug 21, 2014

Whenever I create a new page and navigate to it on a web browser I get a 404 error and my URL bar shows http://mcpe.w-a-s-d.co.uk/test (the new page is called test) but the folder doesn't exist at the root of my server so I looks to be pointing in the wrong direction ?

Thanks for your help
Josh

@rhukster
Copy link
Member

My guess is you are missing the .htaccess file that came with the Grav install. If you copied files around with Finder (on a mac for example) it would not pick up the hidden files when you dragged. Try extracting the file to a folder and moving the entire folder where you want it, and then rename it.

If you do have .htaccess at the root, we can see what else could be causing that. Let me know! Cheers.

@jevo99
Copy link
Author

jevo99 commented Aug 21, 2014

I've just double checked and the .htaccess and it's defiantly there I've restarted apache and cleared my web browsers caches just to rule the simple things out

And thanks for your quick response !

@rhukster
Copy link
Member

Could you zip up and share with me your pages folder So I can take a look at it?

@jevo99
Copy link
Author

jevo99 commented Aug 21, 2014

Yes sure,
http://mcpe.w-a-s-d.co.uk/pagesziph231.zip (link to zipped pages folder)

http://mcpe.w-a-s-d.co.uk/ (link to the website itself)

@rhukster
Copy link
Member

Ok, nothing wrong with your pages, and the fact that its not a Grav 404 error page, tells me that there's definitely something wrong with your server setup or .htaccess is not being picked up for some reason. Perhaps your hosts restricts use of individual .htaccess files? are the permssions readable by the webserver on this file? Have you tried zipping the whole site and running on a local webserver?

Just trying to get to the bottom of the issue :)

@rhukster
Copy link
Member

btw, one way to test another webserver is to run the PHP 5.4 built-in server on the directory:

$ php -S localhost:8000

From the Grav directory, an then hitting http://yourhost.com:8080

@rhukster
Copy link
Member

BTW regarding the .htaccess not running, check to see if you have AllowOverride None in your virtual host setup for apache2. That would stop any local .htaccess files from processing. Changing that to AllowOverride All would do the trick.

@jevo99
Copy link
Author

jevo99 commented Aug 21, 2014

Ahh I had tried that previously, however it couldn't have worked
I fixed this by running "sudo a2enmod rewrite" sorry for this newbie mistake

But thank you again for your excellent response time and patience.
Josh.

@jevo99 jevo99 closed this as completed Aug 21, 2014
@rhukster
Copy link
Member

No problem, glad you got it sorted!

@mahagr mahagr added the invalid label Aug 23, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants