.htaccess - Laravel and opencart htaccess rule -


I have a larval site that the customer now wants opencart at the same domain, but running in www.example.com/shop Is the directory. I've put opencart in the public folder, but I'm having trouble with creating the htaccess file redirect.

This is what I have done so far but it is not just going to Laravel with routes route instead of OpenCart folder to run at WAMP at this moment, laravel works fine < / P>

  # if not another platform (opencart) then load laravel & lt;. IfModule mod_rewrite.c & gt; # Redirection rear slash RewriteEngine on ... RewriteRule ^ (. *) / $ / $ 1 [L, R = 301] # Handle Front Controller ... RewriteCond% {REQUEST_URI}! ^ / ShopRewriteCond% {REQUEST_FILENAME}! -d RewriteCond% {REQUEST_FILENAME}! -f Rivieraith ^ ^ index.php [L] & lt; / IfModule & gt; # Redirect to open the directory of the cart & lt; Ifmodule mod_rewrite.c & gt; # Redirection rear slash RewriteEngine on ... RewriteRule ^ (. *) / $ / $ 1 [L, R = 301] # Handle Front Controller ... RewriteCond% {REQUEST_FILENAME}! -d RewriteCond% {REQUEST_FILENAME}! -f RewriteRule ^ Shop / Index.FPP [L] & lt; / IfModule & gt;  

Appreciate any thoughts!

Change your to Htaccess for this one.

  #If not load other platforms (OpenSecort), load loads & lt; IfModule mod_rewrite.c & gt; # Redirection rear slash RewriteEngine on ... RewriteRule ^ (. *) / $ / $ 1 [L, R = 301] # Handle Front Controller ... RewriteCond% {REQUEST_URI}! ^ / ShopRewriteCond% {REQUEST_FILENAME}! -d RewriteCond% {REQUEST_FILENAME}! -f Rivieraith ^ ^ index.php [L] & lt; / IfModule & gt; # Redirect to open the directory of the cart & lt; Ifmodule mod_rewrite.c & gt; RewriteBase / Shop / # Redirection On Back Slash ... RewriteRule RewriteEngine ^ (. *) / $ / $ 1 [L, R = 301] # Handle Front Controller ... RewriteCond% {REQUEST_FILENAME}! -d RewriteCond% {} REQUEST_FILENAME! -re rewrite arrow ^ index.php [L] & lt; / IfModule & gt;  

Comments

Popular posts from this blog

java - Can't add JTree to JPanel of a JInternalFrame -

javascript - data.match(var) not working it seems -

javascript - How can I pause a jQuery .each() loop, while waiting for user input? -