Set up apache + php laravel - redirect the domain/api to another hole
The initial setting has already been done, but it works a little incorrectly.
In the configuration there are subdomains (and for some reason it works incorrectly with subdomains)
Name of Domain.com
ServerAlias trade.domen.com
DocumentRoot /home/user/domen.com/www/public
ServerName market.domen.com
DocumentRoot /home/user/domen.com/www/public_2
Alias /api "/home/user/domen.com/www/public"
Alias /cats_menu "/home/user/domen.com/www/public"
The trade.domen.com subdomain works correctly in Laravel,
But market.domen.com/api and market.domen.com/api/cats_menu are processing incorrectly - Laravel makes a mistake,
But on the way market.domen.com/api/api or market.domen.com/api/api/cats_menu - Laravel works correctly,
You may need to write some settings in .htaccess and only fix this problem.
Client's review of cooperation with Aleksandr Petrov
Set up apache + php laravel - redirect the domain/api to another holeThe executive quickly solved the problem, proposed several options
Freelancer's review of cooperation with Andrey Sharo
Set up apache + php laravel - redirect the domain/api to another holePleased with cooperation. Access to the project Andrei provided quickly. There are no problems with communication, the only small minus, a little unclear tz, but it didn’t have a great impact on the work. I am pleased with the collaboration, I recommend.
-
471 36 2 1 Good day . Ready to perform the task. There is an understanding of how to do this through the editing of htaccess, for details in personal messages.
-
1107 29 0 Good day Andrei.
I think you need to solve this task not in apache, but in the routes of the code of your laravel.
Now you are sending the apache to the main Laravel file, which is already in its turn dividing into apes and other routes.
-
127 Hello dear Andrei. I am a web developer with two years of work experience, I want to get a good review so the quality of work and your satisfaction will be in my priority,this is what we agree on the payment and deadlines.I have experience in developing laravel and working projects on it. I will be happy to cooperate with you. Details can be discussed in a format that is convenient for you.
-
я так понимаю там одна точка входа что для api что для приложения ?
-
Roman A. Hellper
Подскажите еще актуально?
-
Current freelance projects in the category Content Management Systems
WordPress admin trainingLooking for a WordPress specialist with whom we can hold a meeting in a screen sharing format. Interested in creating Pages, Parent, Template, and displaying plugins on pages. Please indicate the cost per hour of training. Content Management Systems, Tuition ∙ 7 hours 1 minute back ∙ 9 proposals |
Integration needed: KeyCRM → Cash Register KashalotIt is necessary to set up integration between KeyCRM and the Cash Register Kahalot. When placing an order in KeyCRM, the data must be automatically transmitted to Kahalot: • order information • products, nomenclature • prices • quantity More details in private. Content Management Systems, PHP ∙ 7 hours 36 minutes back ∙ 18 proposals |
I am looking for a WordPress/Elementor/Woo specialist who has extensive experience with the Woodmart template.
113 USD
It is necessary to update the visual design and structure of the online store for dental products (link will be sent in a private message). The site operates on the WordPress + WooCommerce framework. The template is Woodmart. Tasks: Update the header, footer, and content on… Content Management Systems, HTML & CSS ∙ 1 day 12 hours back ∙ 34 proposals |
No applications are coming to TG ocStore (OpenCart)Requests from the online store to Telegram have stopped coming. There are 5 websites hosted on the same server, the version of the engine and modules is the same, but a few weeks ago, requests stopped coming to TG from all sites (the TG bots and groups are different). Requests… Content Management Systems, Web Programming ∙ 1 day 14 hours back ∙ 63 proposals |
A WordPress site using the Kadence theme and Kadence Blocks.
225 USD
We need to create a website on WordPress using the Kadence theme and Kadence Blocks. There will be no online store (although it may be added in the future). We need a homepage and several internal pages. The graphics are already prepared, the layout structure is mostly defined,… Content Management Systems, PHP ∙ 1 day 17 hours back ∙ 37 proposals |