Hmmmmm can get the URL redirect to work on its own so thanks for that but cant get it to work in conjunction with the other htaccess!
Web root htaccess contains:
Options +FollowSymLinks
RewriteEngine on
RewriteBase /
RewriteCond %{SERVER_PORT} 80
RewriteCond %{REQUEST_URI} app
RewriteRule ^(.*)$ [
example.com...] [R,L]
RewriteEngine on
RewriteBase /app/
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.php -f
RewriteRule ^(.*)$ $1.php
ReDirect 301 /app/user/index.php http://www.example.com/app/user/user
This works fine - all pages redirect to https, extension is removed and when anyone tries /app/user or /app/user/index.php it redirects to /app/user/user.
If I add this line "RewriteRule ^edituser/([0-9]+) /users/edit_user.php?id=$1 [L]" into the root htaccess it gives me 500 Internal Server Error.
If I put it into the /app/user directory I can get the url to work i.e. /app/user/user-edit/5 allows me to edit user 5 BUT then the app/user/index.php redirect stops working.
Assume I need to get all the redirects for that directory into the one htaccess file located there?
Have tried all variations I can think of including variations of RewriteBase and changing the paths in the actual ReWriteRule but cant get them to co-exist, can they be made to work in conjunction with each other?
Thanks
J