OK, so I added a new folder to my PHPFox site. It's named "new"

If I go to mysite.com/new I get page not found.

I tried adding 

RewriteCond %{REQUEST_URI} !^/new/.* to my htaccess but it didn't work.

Does anyone know how to get the htaccess to allow this folder to be accessed in a browser? 

 

Thanks,

Tim

Be the first person to like this.
JohnJr

Check out this page as it shows you how it knows what to grab for data and where.  Check out where it says Line 35 and the paragraph under changing the .htaccess if using short URLs.

https://docs.phpfox.com/display/FOX4MAN/Changing+Your+Domain+Name

Be the first person to like this.

Hi John, thanks for replying!

I wasn't trying to move the installed Phpfox site to a new folder. Just wanted to add a new folder and have the installation recognize it. I added the above code again and added some files to the "new" folder. I was then able to access the folder. I found if the folder is empty, you get a 404. If you add folders, it will read the contents.

Thanks,

Tim

Be the first person to like this.
JohnJr

Oh...sorry.  I wish I could say I was drinking but I wasn't.

I think you have to have the right folder contents, which makes it makes sense.  Check out thread number #38.

https://community.phpfox.com/forum/thread/57431/

will search for more info on this.  Hopefully, someone smarter than me will respond.

Be the first person to like this.
JohnJr

https://docs.phpfox.com/display/FOX4DEVDOC/Writing+Your+First+App

Look at this page and its info.  I know your not making an app but 3/4 the way down is says...

Open browse, in address bar append /index.php/to-do-list/, then see the result.

Then it shows the Hello, to do list home page....the folder and page is reconized in phpfox....maybe :)

 

Last update on October 9, 2022 by JohnJr.
Be the first person to like this.

Yeah. The mistake I made was not putting something in the folder :) Should ghave known better.

Working now. Appreciate your time!

Yeah. The mistake I made was not putting something in the folder :) Should ghave known better.

Working now. Appreciate your time!

Yeah. The mistake I made was not putting something in the folder :) Should ghave known better.
Working now. Appreciate your time!

Yeah. The mistake I made was not putting something in the folder :) Should ghave known better.
Working now. Appreciate your time!