0

I deployed a laravel app in a shared hosting. It is not designed to work in a shared hosting. I search in google on how to make it work and I added this htaccess script in the root folder:

<IfModule mod_rewrite.c>
  RewriteEngine on

  RewriteCond %{REQUEST_URI} !^public
  RewriteRule ^(.*)$ public/$1 [L]
</IfModule>

The problem I have for a while now is that some of my scripts are executed twice. Insertion in the database are duplicates. Can this htaccess cause the issue?

2
  • I would recommend to change autoload.php and start.php files not htaccess one. You can find how to here stackoverflow.com/questions/25724586/… Commented Mar 17, 2016 at 10:01
  • Thanks but it still the same. Does not work. I think i found the problem. It's in my keyboard, I guess. I tried to call the URL in command line via CURL and it's not anymore duplicating. Commented Mar 18, 2016 at 5:43

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.