Mobile app version of vmapp.org
Login or Join
Radia820

: You have a few conflicting rules and your 301's redirects should use absolute paths since this can cause loops, as well as a un-required index.htm > index.php which is also wrong and should

@Radia820

You have a few conflicting rules and your 301's redirects should use absolute paths since this can cause loops, as well as a un-required index.htm > index.php which is also wrong and should be a conditional rewrite. Backup your htaccess file, and use the htaccess which is used on my site that I've edited to match your site.
#Joomla Defaults
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]
#Removes index.php
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9} /index.php HTTP/
RewriteRule ^index.php$ www.agrin-consult.com/ [R=301,L]
#Removes index.htm
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9} /index.htm HTTP/
RewriteRule ^index.htm$ www.agrin-consult.com/ [R=301,L]

#Some Additional Rules
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]

#Enforces WWW
RewriteCond %{HTTP_HOST} !^www.agrin-consult.com
RewriteRule (.*) www.agrin-consult.com/ [R=301,L]

#Removes HTTPS
RewriteCond %{HTTPS} on
RewriteRule (.*) %{HTTP_HOST}%{REQUEST_URI}
#Old Redirects
Redirect 301 /services www.agrin-consult.com/project Redirect 301 /projects/projects.html www.agrin-consult.com/project Redirect 301 /projects/project1.html www.agrin-consult.com/project Redirect 301 /projects/project2.html www.agrin-consult.com/project Redirect 301 /projects www.agrin-consult.com/project Redirect 301 /keypersonnel.html www.agrin-consult.com/about-agrin/keystaff Redirect 301 /cooperation.htm www.agrin-consult.com/about-agrin/intcoop Redirect 301 /member.html www.agrin-consult.com/about-agrin/memberships Redirect 301 /contact.html www.agrin-consult.com/contacts Redirect 301 /hr.htm www.agrin-consult.com/jobs

Ensure that you have the following Settings in your control panel


Login to Administrator Control Panel in Joomla
Click Site Tab > Global Configuration
Search Engine Friendly URLs (Yes)
Use URL rewriting (Yes)
Adds Suffix to URL (No)

10% popularity Vote Up Vote Down


Login to follow query

More posts by @Radia820

0 Comments

Sorted by latest first Latest Oldest Best

Back to top | Use Dark Theme