I copied a website to the /wwwroot/public folder
now when I go to my azure webstie it just goes to the default screen of an azure website.
How can I change it so it goes to the/public folder. since I dont application settings and then virtual application and directories. option in azure
You can add a redirect rule to redirect to /public folder using .htaccess in Apache or .conf file in Nginx.
Related
I have installed Xenforo in my public_html in my Cpanel which means my forum is available in site.com
Now I want to add another folder contains my web app and want to access it in site.com/myapp. I created a folder "myapp" in public_htmll beside Xenforo files and now when I enter the URL site.com/myapp it goes to a 404 page of the forum. I need to Xenforo exclude this folder and let the app lunch in this address. How can I do that?
You should move your XenForo installation to a subdirectory - many people use site.com/community as the forum root and either have a separate home page at site.com/ or just redirect the domain root to the /community URL.
This then allows you to have other apps running in other subdirectories like site.com/myapp without issue.
In XenForo 2.x this works fine, If you have enabled full Seo friendly urls from admin panel, Make sure you have proper .htaccess file in place. In you case, I believe you did not upload .htaccess file in public_html folder
I have a install that has a web folder that has the website stored in this. How can I make the domain load from this folder within the public_html folder.
The domain is like: sub.domain.co.nz
Don't put the entire Symfony project under the public_html folder - this will cause all of the project files to be accessible over the web, including .yml files that include sensitive information like database passwords!
Put the Symfony project files in a folder that is not web accessible. Then configure your web server so that the DocumentRoot points to the path of the web folder of the Symfony project, and also modify the paths of all the aliases.
I'm moving my app (a CodeIgniter app-- I'm not sure if that is relevant) to a new web host and have to resolve some questions about pathing.
On my localhost dev environment, everything is working. Here is the folder layout:
Root Directory
Application
Here is the folder layout on my web host:
Root Directory
xyz folder
Application
If I visit the following URL in my browser, I get a 404 error:
http://myDomainName/xyz
Is there a way to correct this via .htaccess?
Thanks very much in advance to all for any info.
Try configuring your config.php (application/config/config.php) to point to the correct base url for your webapp.
This line should be included in the file:
$config [‘base_url'] = http://myDomainName/xyz
I am trying to set me local project which works perfectly well on a host server (always data).
I made a project folder on the root (/project) of server where I uploaded all my files
I copied public folder into /www
Exactly how explained on this tutorial :https://medium.com/laravel-news/the-simple-guide-to-deploy-laravel-5-application-on-shared-hosting-1a8d0aee923e
First pages load perfectly, but when I am trying to connect with my api, the redirect URL returns a 403 Forbidden error
My redirect url is htp://.......com/public/play
It works when it is localhost but not on my web server...
Should I put www/play as redirect URL?
Why can I access my view on first page but not after redirection from api?
Thank you very much for the help !
You are not may be copying the content of public folder in the www directory Like it said
Next step is to copy all contents inside the /project/public directory
to www/ directory. The easy example is that, with the fresh Laravel 5
installation application, the project/public/index.php should be
copied to the www/index.php , have you got the point?
and you did
I copied public folder into /www
I have a full node application on Azure... is it possible to run wordpress in a subdirectory of that site?