Amit Kumar Mishra Posted January 9, 2018 Report Posted January 9, 2018 hi all in my test install, i have tried all but its not working say i have a.com, blesta installed at root now say i wish to have a.com/about-us.html or a.com/about-us.php or any other, i cannot get it done i am sure i am missing out on something, but not sure what this may be done via the use of a plugin, but i wish to get it done without a plugin whenever i upload a page in that fashion and try to access it, blesta gives me a 404 page what may i do and how do i proceed any help is welcomed thanks Quote
0 Paul Posted January 9, 2018 Report Posted January 9, 2018 You shouldn't install Blesta in the root of your domain, all resources are routed through index.php. The only exception is if you are using something like Blesta CMS that makes a CMS out of Blesta for that purpose. Otherwise, you should install Blesta in a sub-directory (ie domain.com/blesta/), or a subdomain. (ie blesta.domain.com). You can't have other HTML files mixed in with your Blesta install. Beav 1 Quote
0 activa Posted January 10, 2018 Report Posted January 10, 2018 You need to add a custom htaccess code and you can access you html and other php files . Quote
0 Amit Kumar Mishra Posted January 10, 2018 Author Report Posted January 10, 2018 2 hours ago, Paul said: You can't have other HTML files mixed in with your Blest say i want to have a "about" page or say a "terms of service" page how do i add those? 2 hours ago, activa said: You need to add a custom htaccess code and you can access you html and other php files . my .htaccess is empty... what shall i put in there so that i am able to achieve what i intend, as i mentioned above... Quote
0 Blesta Addons Posted January 11, 2018 Report Posted January 11, 2018 if i'm not wrong, the htaccess has already a code that check if the requested filename exist in the directory then it should not handled with blesta index . so normally it should work if you upload your html files to index directory. RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f Quote
0 Amit Kumar Mishra Posted January 11, 2018 Author Report Posted January 11, 2018 3 hours ago, Blesta Addons said: if i'm not wrong, the htaccess has already a code that check if the requested filename exist in the directory then it should not handled with blesta index . so normally it should work if you upload your html files to index directory. RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f yeah so i remove it and then try? Quote
0 Blesta Addons Posted January 11, 2018 Report Posted January 11, 2018 no you should keep them . Quote
0 Beav Posted January 11, 2018 Report Posted January 11, 2018 Amit message me on discord and I'll help you figure it out. You have the blestacms though or is this a separate install? Quote
0 Amit Kumar Mishra Posted January 11, 2018 Author Report Posted January 11, 2018 41 minutes ago, GosuHost said: Amit message me on discord and I'll help you figure it out. You have the blestacms though or is this a separate install? sure mate Quote
0 Blesta Addons Posted January 11, 2018 Report Posted January 11, 2018 i have uploaded a test html file and i can access it within the blesta directory https://blesta-addons.com/test.html Quote
0 Amit Kumar Mishra Posted January 12, 2018 Author Report Posted January 12, 2018 19 hours ago, Blesta Addons said: i have uploaded a test html file and i can access it within the blesta directory https://blesta-addons.com/test.html this is what i wish to achieve if any one may let me know how to do it if not in the open forum, may be in the private message Quote
0 Amit Kumar Mishra Posted January 12, 2018 Author Report Posted January 12, 2018 hi sorry to all whom i bothered actually the problem was a 404 error popping in due to the improper url @GosuHost who is like my younger brother and a good mate pointed out the mistake, the thing what i was trying to achieve was already done i had about as <a href"about.html"> this which accessed from the clients dashboard turned out to be clients/about.html instead of /about.html what a fool i was what i need is good sound sleep, so that i do not make these silly mistakes and bother my community mates if i would had written the complete url this would not had been the issue, like <a href"domain.tld/about.html"> but ,any thanks to all those who did stoped by to help me activa and Beav 2 Quote
0 Beav Posted January 12, 2018 Report Posted January 12, 2018 Thank you for the kind words mate! I'm glad I was able to clear up all your questions. activa and Amit Kumar Mishra 1 1 Quote
Question
Amit Kumar Mishra
hi all
in my test install, i have tried all but its not working
say i have a.com, blesta installed at root
now say i wish to have a.com/about-us.html or a.com/about-us.php or any other, i cannot get it done
i am sure i am missing out on something, but not sure what
this may be done via the use of a plugin, but i wish to get it done without a plugin
whenever i upload a page in that fashion and try to access it, blesta gives me a 404 page
what may i do and how do i proceed
any help is welcomed
thanks
12 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.