I just switched my company's website to Craft, and I have a lot of already existing static webpages that I would rather not remake as templates and define routes for. I have a single page made in Craft at /events, but when I add the subdirectory events/event-name, going to /events presents a 403 error. I know why this is happening, because of the way Craft handles routing, but is there any way (possibly in my .htaccess file) for going to /events to deliver the single page like normal, despite having the subdirectory in my public folder? Thanks.
Asked
Active
Viewed 118 times
1 Answers
1
You could update the links to your static HTML to point to the files directly
http://mygreatnewcraftsite.com/events/myoldstaticfile.html
or modify your .htaccess file like I described here: "Is it possible to tell Craft to ignore requests to under a certain path?"
site.com/eventsto go to Craft, but to have a static site (with stylesheets, images, etc) at the directory/htdocs/events/event-name. However, if the/htdocs/eventsexists, Apache delivers a 403. I wantsite.com/eventsto go to Craft, butsite.com/events/event-nameto go to the static site. – Ryan Jan 21 '15 at 19:25