php - How do I remove the "/web" from my URL? -


I am using crud-admin-generator () to generate quick backend for my web app, which That Silex Framework

My app structure is:

  MyApp -> index.php - & gt; Some_other_files - & gt; ... - & gt; Admin (crud-admin generator git clone) - & gt; General - & gt; Src - & gt; Dealer - & gt; Web - & gt; Controllers - & gt; Resources - & gt; View   

1) Administrator I currently need to use http: // localhost / MyApp / admin / web . I / web < / Code> I want to remove part I tried to create a custom htaccess in the admin folder like this:

  & lt ; Ifmodule mod_rewrite.c & gt; Option - Multi View RewriteEngine Rewrite / Web RewriteConnect% {REQUEST_FILENAME}! -f Rewrite rules ^ index.php [QSA, L] & lt; / IfModule & gt;   

But I get an error: The requested URL / web / index.php was not found on this server.

2) The generated admin panel uses the Silex framework, is it an easy way to use the principle component or framework for my frontend (file outside the admin folder)? Do I have to manually change the routing path of all Generated Admin files? Sorry, if I confuse.

Keep your /MyApp/admin/.htaccess like this: < / P>

  & lt; Ifmodule mod_rewrite.c & gt; Option - Multi Views RewriteEngine OnRewriteBase / MyApp / Admin / RewriteCond% {REQUEST_FILENAME}! -f Rivieraith ^ ((?! Web /).*)$ web / $ 1 [nc, l] & lt; / IfModule & gt;    

Comments

Popular posts from this blog

ios - Adding an SKSpriteNode to SKScene from a child SKSpriteNode -

Matlab transpose a table vector -

c# - Textbox not clickable but editable -