Htaccess redirect /index.php/ AND /index.php (no /) to root - Joomla! Forum - community, help and support


hi! trying redirect: enigmacrea.com/index.php enigmacrea.com
it works enigmacrea.com/index.php/ (with / ) not without / :-[

http://www.enigmacrea.com/index.php/ (works perfect)
http://www.enigmacrea.com/index.php (doesn't work)

this have in htaccess:

options +followsymlinks

rewriteengine on
rewritecond %{request_uri} ^/index\.php/
rewriterule ^index.php/(.*) /$1 [r,l]

rewritecond %{http_host} !^www\.
rewriterule ^(.*)$ http://www.%{http_host}/$1 [r=301,l]

rewriterule .* - [e=http_authorization:%{http:authorization}]
rewritecond %{request_uri} !^/index\.php
rewritecond %{request_uri} /component/|(/[^.]*|\.(php|html?|feed|pdf|vcf|raw))$ [nc]
rewritecond %{request_filename} !-f
rewritecond %{request_filename} !-d
rewriterule .* index.php [l]

thank time , help!

looks little lite me, heres htaccess default plus additions, change http://www.bybe.net own domain.

this remove both index.php, , index.htm, redirect https:// http:// if want https remove line.

code: select all

options +followsymlinks
rewriteengine on
rewritebase /
rewritecond %{query_string} base64_encode[^(]*\([^)]*\) [or]
rewritecond %{query_string} (<|%3c)([^s]*s)+cript.*(>|%3e) [nc,or]
rewritecond %{query_string} globals(=|\[|\%[0-9a-z]{0,2}) [or]
rewritecond %{query_string} _request(=|\[|\%[0-9a-z]{0,2})
rewriterule .* index.php [f]

rewritecond %{the_request} ^[a-z]{3,9}\ /index\.php\ http/
rewriterule ^index\.php$ http://www.bybe.net/ [r=301,l]

rewritecond %{the_request} ^[a-z]{3,9}\ /index\.htm\ http/
rewriterule ^index\.htm$ http://www.bybe.net/ [r=301,l]

rewriterule .* - [e=http_authorization:%{http:authorization}]
rewritecond %{request_uri} !^/index\.php
rewritecond %{request_uri} /component/|(/[^.]*|\.(php|html?|feed|pdf|vcf|raw))$ [nc]
rewritecond %{request_filename} !-f
rewritecond %{request_filename} !-d
rewriterule .* index.php [l]

rewritecond %{http_host} !^www\.bybe\.net
rewriterule (.*) http://www.bybe.net/$1 [r=301,l]

rewritecond %{https} on
rewriterule (.*) http://%{http_host}%{request_uri}





Comments

Popular posts from this blog

How to change text Component easybook reloaded *newbee* - Joomla! Forum - community, help and support

After Effect warning: A problem occurred when processing OpenGL commands

Preconditions Failed. - Joomla! Forum - community, help and support