lundi 2 janvier 2017

Rewrite url with .htaccess file

I have a laravel app inside my wordpress application on a centos6 vps server

public_html/wordpress-app/

  • wordpress-app
    • wp-admin
    • wp-content
    • rest of wordpress files
    • laravel-app
      • all the laravel files

The only way to see the views is the laravel app are with the url

http://ift.tt/2iJ0Css

I would like to remove /laravel-app/public from the url

I have tried

    Options +FollowSymLinks -MultiViews
    # Turn mod_rewrite on
    RewriteEngine On
    RewriteBase /

    RewriteRule ^laravel-all/public/(.*)$ /$1 [L,NC,R]

In a .htaccess file under public_html and in wordpress/.htaccess file. As well as cleared my cache but I still get a 404 error



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire