Jump to content

.htaccess settings crashed site


wjkaluza
 Share

Recommended Posts

To use the MediaElement.js video and audio player, it is recommended that the following code be added in an .htaccess file placed in the root of the website:

AddType video/ogg .ogv

AddType video/mp4 .mp4

AddType video/webm .webm

 

These settings were recommended to stream video files, and I never thought they would interfere with processwire.  Unfortunately, I can not even access my admin panel so .htaccess must have overwritten key system code.

Does anyone know what may have happened and how I can get access back?  I have deleted the .htaccess file, but the harm was already done apparently.

Thank you.

Bill

Link to comment
Share on other sites

I have just solved my own issue, but I want to document the solution in case other happy processwire users encounter the same problem.

The solution is to simply rename the htaccess.txt file that was downloaded when processwire was installed to .htaccess and upload the renamed file.  Apparently the renaming process occurs automagically upon installation so I was not aware that I was overwriting a critical file.

BIll

  • Like 1
Link to comment
Share on other sites

@wjkaluza - you might try using a 'live editor' like Coda or Sublime Text, or even a different editor in conjunction with an ftp client that supports live editing (such as Forklift); then make sure your settings show 'invisible' files, since on some OS, files with a . are invisible by default. You'll very likely need quick access to edit your files quite often this way, including the htaccess, where you might need to add gzip compression code, (and occasionally AddType), though i use mediaelement and did not have to add those things to htaccess.  good thing about those sorts of editors is you can also quicky change permissions on files, like the config

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...