Hey all,

Been re-writing the HTAccess for the Moodle software which comes as standard. This is the code I have so far:

# BEGIN Moodle
<IfModule rewrite_module>

#Fixes Moodle issue with redirection on shared servers
Options Indexes FollowSymLinks +IncludesNOEXEC 
RewriteEngine On
RewriteCond %{HTTP_HOST} ^domain\.co.uk
RewriteRule ^(.*)$ /Moodle/$1

#Redirects lowercase to uppercase
RedirectMatch 301 domain.co.uk/moodle(.*) 


# END Moodle

So this is essentially supposed to remove the http:// at the start and move them to www. (Which works)

However the second part, "#Redirects lowercase to uppercase". Isn't actually redirecting them from the directory moodle to Moodle.

Any help?


looking over a google search states HTACCESS cannot be used to alter global text in the manner you are trying to do

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.