0

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(.*) 
domain.co.uk/Moodle/$1


</IfModule>

# 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?

Thanks

2
Contributors
1
Reply
2
Views
4 Years
Discussion Span
Last Post by Squidge
0

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

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.