I build a Laravel 5.3 application on my local environment and now i want to deploy it on my hosted server.
On my server i already have a hosted Wordpress site. Actually i developed an application on Laravel and i want to host this on particular domain path.
for example suppose my Wordpress site is hosted on example.com
and i want to host my Laravel application on example.com/my-laravel-app
without affecting the Wordpress site
so how can i do this please help me and thanks in advance.
If you have in your public html directory a folder called "my-laravel-app" Wordpress will not try to serve it for you and it'll go directly to this folder.
You need to make sure that you point anyone who is visiting this directory to /public for laravel app to work (Or use any other question on SO like this one for ignoring the /public path which is not recommended at all!).
Related
I am new to .htaccess concept. I have a website hosted on a Windows server with IIS 7.5.
I want know if .htaccess is supported on it or not actually I want to resolve canonical url issue with it, I even tried creating .htaccess and ran it on the server but did not worked.
My hosting provider offers me even Linux server also so what should i do to achieve .htaccess functionality should i migrate to linux server please note that my website is created in aspx with some page in html also.
I know canonical issue can be resolved through web.config file also but even that is not working.
please help me.
Regards,
Shashikant
If your website is an ASP.NET website (.aspx) .htaccess files are of no relevance to you, and you should usually be running your website on a Windows Server.
.htaccess files are for Apache web servers and although they can be used on IIS 7.5 e.g. for a PHP-based site like Prestashop you would require a third-party plugin to utilise the .htaccess files.
The Windows Server IIS7.5 closest equivalent is the web.config file.
I have a free hosting account, and two ASP.NET project.
I want to upload both apps in my hosting, like:
www.hosting.com/myaccount/project1/
www.hosting.com/myaccount/project2/
But the problem is when I run project1 or project2
Asp.net considers application main path ("~") as root www.hosting.com/myaccount/
Si I cant load dll, App_themes, and Other.
What can I do to stop that strange behvior!
I cant configure IIS because I am using free hosting.
I applied this answer and no thing happened.
Thank you for hepling.
You can add an application at root that redirects to the other two.
I would like to nest asp.net web app within sitecore site, something like this:
<sitecore web root folder>
.
<virtual directory/app folder>
I want to access sitecore site by using following url:
http://<whatever site name>
and I would like to access web app by using following url:
http://<whatever site name>/<whatever virtual directory/app alias>
Is this possible?
I tried it but when I try to access my web app (not sitecore) then web app complains about missing sitecore.
I believe that is because now I have two config files ans when accessing web app iis/asp.net processing first sitecore web.config.
Right, your assumption is correct. See Creating a project in a virtual directory under Sitecore root article for more information about this kind of setup.
You should be able to create a virtual app under a Sitecore root path. Because its an app it will use its own app pool and you can have a web.config for it. I guess the physical files will be OUTSIDE of the Sitecore Website folder but the from a URL you can make the virtual app located anywhere below the Sitecore root.
I have a asp.net website in the IIS which is available on internet as www.xyz.com now I have been asked to prepare another website which will be accessed via www.xyz.com/abc.
For this, do I need to create a virtual directory under the website folder XYZ in IIS? or is there any other way to achieve this.
You need to make the subdirectory an IIS application.
Keep in mind that inner apps like yours will be inheriting configurations from the top-most web configuration, so be careful clearing those settings you don't want in the child applications.
Yes a virtual directory will work, however note that if abc is a full-blown app you will have to add it as an application not as a virtual directory
I already have a website running on my server and now I wanted to install Blogengine.net and have it running as a subdirectory to my website. I need it to be a subdirectory so I can check for authorization and use other stuff from my website that is already running.
I get this error if I not create a virtual directory for my blog:
"It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS."
How can I have BE running as a subdirectory without making it a virtual directory? How can I use the stuff like sessions, masterpages from my already running website?
Hope you understand what I'm talking about, my english is not the best. Sorry! :-)
Thanks!
Just go to Contents>IIS Settings then mark the folder that is mapped to your subdomain as virtual directory.
Hope this helps
I've done something similar, but I did it via my hosting company (GoDaddy.com) as a "shared hosting" solution.
Basically, I have a primary domain (scottmarlowe.com) and, in a sub-folder off that main site, another site (itscodingtime.com) with its own domain but which exists as a sub-folder beneath the scottmarlowe.com root.
So, I have:
root
root \ itscodingtime
where "itscodingtime" is a whole other BlogEngine.NET blog.
I don't know if that answers your question or not, but it's how I did it.