Skip to content
Grav 2.0 is officially stable. Read the announcement →

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Installation & Hosting

Problem with .htaccess and httpd.conf

apache

Started by noname 8 years ago · 1 replies · 1150 views
8 years ago

Hello,

I am trying to host Grav on my server but I have a problem with the rewrite.

When you enter the home you see correctly, but when you enter any section, you will get the following message:

Not Found
The requested URL / taxonomy was not found on this server.

The .htaccess file modify the following line:

Begin RewriteBase

If you are getting 500 or 404 errors on subpages, you may have to uncomment the RewriteBase entry

You should change the '/' to your appropriate subfolder. For example if you have

your Grav install at the root of your site '/' should work, else it might be something

along the lines of: RewriteBase / <your_sub_folder>

RewriteBase / app / www / html / grav

The httpd.conf file has the following:

#

Each directory to which Apache has access can be configured with respect

to which services and features are allowed and / or disabled in that

directory (and its subdirectories).

#

First, we set the "default" to be a very restrictive set of

features.

#
<Directory />
Options FollowSymLinks
AllowOverride All
</ Directory>

Then the virtual host:

<VirtualHost *: 80>
<Directory / app / www / html / grav>
Options FollowSymLinks
Options SymLinksIfOwnerMatch
AllowOverride All
</ Directory>
DocumentRoot / app / www / html / grav
ServerName grav.test.com
ServerAlias ​​grav
</ VirtualHost>

Could you help me find where I am making the mistake?

I read the documentation but I can not solve it.

I await your comments.

Thank you!

8 years ago

What does your current htaccess/virtualhost entry contain for the Grav install? Can you post it in a code block?

What is your directory structure? Is Grav in the root dir or a subdir on the server?

Are you utilizing a hosts file to be able to see your test site?

last edited 12/30/17 by T. H. Wright

Suggested topics

Topic Participants Replies Views Activity
Installation & Hosting · by antoinep, 13 hours ago
5 60 7 hours ago
Installation & Hosting · by Jürgen Dietrich, 7 months ago
0 62 7 months ago
Installation & Hosting · by rappluk, 8 months ago
0 62 8 months ago
Installation & Hosting · by N, 12 months ago
3 72 12 months ago
Installation & Hosting · by Youle, 1 year ago
1 61 1 year ago