Jump to content

Custom File


wstar

Recommended Posts

I wanted to run a file in the directory as follows:

Prestashop_Root/scripts/test.php

 

When i run this in the browser, I get a 404 page error.  However, when I move the file to the root, it runs fine.  What would be causing this?  htaccess?

Edited by wstar (see edit history)
Link to comment
Share on other sites

Mmm... First check URL vs directory name: scrips or scripts ?

 

I was thinking that too.  I did a paste and copy from the FTP.  Any folder I put the file into, gives me a 404 page.  Like its trying to redirect or something.

Link to comment
Share on other sites

The script is correctly executed on a fresh PS 1.6.1.5.

Did you make any change in Prestashop_Root/.htaccess, or do you have a Prestashop_Root/scripts/.htaccess?

 

[EDIT] I mean a very simple script (echo 'Hello world'). Maybe yours triggers a (relative) redirection?

Edited by erouvier29 (see edit history)
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
×
×
  • Create New...