remove index.php issues
Permalink
i use pretty urls to remove index.php from sub page url structures.
however domain.com/index.php is still available.
it only removes the index.php when you're on a sub page.
i would prefer my home page to only be accessible in one way for google (SEO)
so i try to rewrite domain.com/index.php to domain.com
by using the code below:
# force removal of index.php
RewriteCond %{THE_REQUEST} ^.*\/index\.php\ HTTP/
RewriteRule ^(.*)index\.php$ /$1 [R=301,L]
this fixes my problem but gives me a new one. Now i cant delete blocks or move them.
does anyone have a work around please? thank you :)
however domain.com/index.php is still available.
it only removes the index.php when you're on a sub page.
i would prefer my home page to only be accessible in one way for google (SEO)
so i try to rewrite domain.com/index.php to domain.com
by using the code below:
# force removal of index.php
RewriteCond %{THE_REQUEST} ^.*\/index\.php\ HTTP/
RewriteRule ^(.*)index\.php$ /$1 [R=301,L]
this fixes my problem but gives me a new one. Now i cant delete blocks or move them.
does anyone have a work around please? thank you :)