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
Related
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 new to magento, I have worked on VirtueMart for joomla for a year now and I noticed it has no multistore ability until a friend introduced me to magento. I have succesfully installed magento(1.7.0.2) into WAMP 2.2 (PHP v5.3.13) on my Windows7.
I succesfully created root categories just as directed here: http://www.templatemonster.com/help/magento-how-to-set-up-and-manage-multiple-stores.html but in my own case, I am using sub-directories (ie //domain/magento as main store and //domain/magento/crunchies as store2).
A root category was created at the backend for crunchies. I copied both index.php and htaccess from magento folder (c:/wamp/www/magento) to crunchies folder (c:/wamp/www/magento/crunchise).on the crunchies' copy of index.php, $mageFilenam =‘app/Mage.php’; I change it to $mageFilename=‘../app/Mage.php’;
And saved changes, I also open up the copied htaccess file and added the following to the end of it:
SetEnvIf Host.*MainWebsite.*MAGE_RUN_CODE= base";
SetEnvIfHost .*www.crunchies.com.*MAGE_RUN_TYPE="cruncies_code";
Where website names created at System>manage store of backend are: Main Website(for main store) and www.crunchies.com (for store2).
When I point to domain/magento on my browser, it shows home page but when I point to domain/magento/crunchies, I get :\"mydirectery"../app/Mage.php was not found.
Please how do I solve this issue? Is there any other setting I'm missing out in my wamp config?
I have a site http://www.gingerlily.fr
i copy those file and create sub directory on root called test and uploaded the file to it
duplicated db and apply update for all base url db and other configurations. (http://www.gingerlily.fr/test)
but the problem is when i access http://www.gingerlily.fr/test
site i always show root urls and other js and images loads from root magento installation. i try a day for thi but no luck.
can anyone help me for this something wrong with httacess file or any other wrong with this ?
thank you
I have seen your http://www.gingerlily.fr/. Correct me if i am wrong your trying to duplicate your site to test directory. But in magento your can't copy and duplicate site like PHP /Html here your files of magento site need to be first install and you can replace your module and theme files.
We have our server which runs the site at 173......54/
For development we want to have a copy of the code that can be tested at 173.....54/~me/site
When I install a copy of Yii and the code at ~me/ folder and access 173.....54/~me/site I am able
to see the newly installed index html. However, if I try to move to 173.....54/~me/site/book or a user register page or any other page the other (main) Yii application reads the code as a link not found instead of the development Yii application.
Am I supposed to update a the htaccess file to ignore requests within /~me ? If so how should it look? Or am I missing something?
Thanks again!
No need to make ignore in other .htaccess, the dev site .htaccess will take care of it.
In your index.php at the root of your dev site you need to point $yii at your Yii framework/yii.php
and then in the .htaccess in the root of your dev site you need to point RewriteBase to your dev site root.
Also make sure you point to the correct configuration file corresponding with your application in index.php
My Goal
I want to modify wordpress project as per my needs. I also want to record the code difference i made in the project. That is my goal.
This is what i done so far
I installed recent version of tortoisesvn.
I'm using windows 7 and i have installed wampserver too
I created a folder called wordpress in C:/wamp/www
So C:/wamp/www/wordporess is now the absolute path of my
wordpress directory. I can able to access it via
http://localhost/wordpress
I right clicked on the wordpress directory and created checkout
using this repository url http://core.svn.wordpress.org/trunk/
Everything successful so far. I'm so confused about the next step
When i right click wordpress and open repository browser it actually list everything from http://core.svn.wordpress.org/trunk/ But i need an environment like trunk,tags,branches in my local directory. I tried by creating checkout on a empty directory(test) by applying url like http://localhost/test but i see some error like redirect cycle detected for url http://localhost/test
Can anyone help me? Thanks
In that case you need to do the checkout from the root and not from the trunk
like http://core.svn.wordpress.org
Advise you to read word press documentation for detail how they are maintaining there structure and other things.
Wordpress-Using_Subversion
Updating_WordPress_with_Subversion
I'm running into the same problem as well.
After some experiments I think it should be caused by following procedure:
( if test is a directory under your web root )
svn client remove the trailing slash for some reason. so for example if you type svn list http://localhost/test/ then the actual request url will be http://localhost/test ( no trailing slash! ).
The http server receive this request and found that test is not file but a directory. so it will send a redirect response to tell client to visit http://localhost/test/ ( has slash) .
the svn client go on step 1 so that finally causing infinite redirect loop....
You can try another non-exist directory like 'nonexist' or a file file to test as well which will returen "Unable to connect to a repository at URL 'http://localhost/nonexist' ..."
This can be fixed on the server side in Apache by setting DocumentRoot to something other than the path containing the SVN repositories (preferably an empty directory).