WordPress inside Laravel

I have wordpress inside my laravel application. My complete application is using laravel except blog. Now I want to handle a page through laravel but blog is coming before it.

Now,
http://tauriel.local/blog/test

Read More

Expected,
http://tauriel.local/test

My whole blog is inside blog folder. How can I remove blog from my wordpress page?

Related posts

1 comment

  1. Just exclude the blog folder in your .htaccess

    I believe that you have the wordpress content inside the folder blog

    RewriteRule ^(blog)($|/) - [L]
    

    i.e.,

    <IfModule mod_rewrite.c>
        <IfModule mod_negotiation.c>
            Options -MultiViews
        </IfModule>
        RewriteRule ^(blog)($|/) - [L]
        RewriteEngine On
    
        # Redirect Trailing Slashes...
        RewriteRule ^(.*)/$ /$1 [L,R=301]
    
        # Handle Front Controller...
        RewriteCond %{REQUEST_FILENAME} !-d
        RewriteCond %{REQUEST_FILENAME} !-f
        RewriteRule ^ index.php [L]
    </IfModule>
    

Comments are closed.