.htaccess - htaccess redirect from wrong URL (Laravel) -


i using laravel

unfortunately google picking urls wrong. example, page such as: www.domain.co.uk/article/hello-world has been indexed in google www.domain.co.uk/public/index.php/article/hello-world.

when visit site, urls seem correct , www.domain.co.uk/article/hello-world url shows page expected, guess google bots using .htaccess , viewing long url instead

(i had put public folder comes laravel in public_html)

the .htaccess in public_html has:

rewriteengine on options +followsymlinks options -indexes rewritecond %{request_filename} !-f rewriterule (.*) /public/$1 [l] 

and there additional .htaccess in public_html/public folder:

options -multiviews rewriteengine on rewritecond %{request_filename} !-f rewriterule ^ index.php [l] 

does know of solutions issue?

i have tried rewrite rules redirect url when public/index.php url having 0 luck. tips appreciated.

if forced host include files in document root, surely need 1 .htaccess file in root itself?

move file public/ root, , change rule to:

rewriterule ^ public/index.php [l] 

Comments

Popular posts from this blog

Detect support for Shoutcast ICY MP3 without navigator.userAgent in Firefox? -

web - SVG not rendering properly in Firefox -

java - JavaFX 2 slider labelFormatter not being used -