[Xerte] 404 not found errors

Geoff King gking at carrhill.lancs.sch.uk
Mon Dec 8 14:41:23 GMT 2008


----- "David Goodwin" <david at palepurple.co.uk> wrote:

> Geoff King wrote:
> > I'm getting 404 errors now. For example when I attempt to create a
> > toolkit I get a 404 error for '/setup/edit.php'. However 'edit.php'
> > does exist in the web document root. The 'properties', 'edit' and
> > 'preview' also cause similar 404 errors.
> > 
> > I have mod_rewrite enabled in my apache configuration.
> > 
> 
> Check the .htaccess file has the correct paths - I found mine had
> e.g.
> /edit mapped to /setup/edit.php/.... instead of /edit.php....
> 

It does seem like the rewriting isn't working. However I have the right lines in the .htaccess. Here it is.

Options +FollowSymLinks

rewriteEngine on

rewriteBase /


rewriteRule ^edit_([A-Za-z0-9]+)$ /setup/edit.php?template_id=$1

rewriteRule ^preview_([A-Za-z0-9]+)$ /setup/preview.php?template_id=$1

rewriteRule ^example_([A-Za-z0-9]+)$ /setup/example.php?template_id=$1

rewriteRule ^play_([A-Za-z0-9]+)$ /setup/play.php?template_id=$1

rewriteRule ^properties_([A-Za-z0-9]+)$ /setup/properties.php?template_id=$1

rewriteRule ^folderproperties_([A-Za-z0-9]+)_folder$ /setup/folderproperties.php?template_id=$1

rewriteRule ^drawing$ /setup/drawing.php


rewriteRule ^data_([A-Za-z0-9]+)$ /setup/data.php?template_id=$1

rewriteRule ^peerreview_([A-Za-z0-9]+)$ /setup/peer.php?template_id=$1




rewriteRule ^export_([0-9]+)$ /setup/website_code/php/scorm/export.php?template_id=$1&scorm=false

rewriteRule ^scorm_([0-9]+)$ /setup/website_code/php/scorm/export.php?template_id=$1&scorm=true

***************************************************************************
This e-mail is confidential and privileged.  If you are not the intended
recipient do not disclose, copy or distribute information in this e-mail
or take any action in reliance on its content.
***************************************************************************

***************************************************************************
This email has been checked for known viruses. 
***************************************************************************


More information about the Xerte mailing list