Without having a clear picture of everything in your config context wise is hard to tell. So seeing as you are using .htaccess which adds complexity perhaps you need to examine what's going one behind the scenes with rewrite debugging: See https://wiki.apache.org/httpd/RewriteLog 2018-01-27 1:49 GMT+01:00 Kory Wheatley <kory.wheatley@xxxxxxxxx>: > Thanks for your response Daniel... I tried your suggestion but it didn't > seem to work RewriteRule ^/deptblogs/$ > http://intranet/template_departments.cfm [R,L] > > See below thank your for troubleshoot do I need to maybe put the > redirectmatch in the httpd.con > > RewriteEngine On > RewriteBase /deptblogs/ > RewriteRule ^/deptblogs/$ http://intranet/template_departments.cfm [R,L] > RewriteRule ^index\.php$ - [L] > > # uploaded files > RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 > [L] > > # add a trailing slash to /wp-admin > RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L] > > RewriteCond %{REQUEST_FILENAME} -f [OR] > RewriteCond %{REQUEST_FILENAME} -d > RewriteRule ^ - [L] > RewriteRule ^[_0-9a-zA-Z-]+/(wp-(content|admin|includes).*) $1 [L] > RewriteRule ^[_0-9a-zA-Z-]+/(.*\.php)$ $1 [L] > RewriteRule . index.php [L] > > > # increased maximum upload filesize from 2M to 50M > # NOTE: In Internet Explorer, open Wordpress network settings also needs to > be changed for the field 'max upload file size'=51200 KB > php_value upload_max_filesize 50M > > > On Thu, Jan 25, 2018 at 7:16 AM, Daniel <dferradal@xxxxxxxxx> wrote: >> >> I'm with Luca here. >> >> A simple redirectmatch would do what you seek. >> RedirectMatch ^/deptblogs/$ http://intranet/template_departments.cfm >> >> Let PHP do complex stuff and let requests for simple paths be handled >> with simple httpd directives, or at least, that's why I would do to >> not lose hair in the process :) >> >> If you have an .htaccess in place like seems to be the case, then >> perhaps this should be the first line after the RewriteBase: >> RewriteRule ^/deptblogs/$ http://intranet/template_departments.cfm [R,L] >> >> This is the same as the redirectmatch but with a rewriterule and >> defined the first to make sure it takes precedence over the >> complicated directives later on. >> >> 2018-01-25 9:07 GMT+01:00 Marat Khalili <mkh@xxxxxx>: >> > On 24/01/18 22:53, Kory Wheatley wrote: >> > >> > Ya there is a .htaccess that has the base set to deptblogs what could I >> > change in here to get it to work? >> > >> > [kwheatley@sftpface2 wordpress]$ cat .htaccess >> > RewriteEngine On >> > RewriteBase /deptblogs/ >> > RewriteRule ^index\.php$ - [L] >> > >> > # uploaded files >> > RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) >> > wp-includes/ms-files.php?file=$2 >> > [L] >> > >> > # add a trailing slash to /wp-admin >> > RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L] >> > >> > RewriteCond %{REQUEST_FILENAME} -f [OR] >> > RewriteCond %{REQUEST_FILENAME} -d >> > RewriteRule ^ - [L] >> > RewriteRule ^[_0-9a-zA-Z-]+/(wp-(content|admin|includes).*) $1 [L] >> > RewriteRule ^[_0-9a-zA-Z-]+/(.*\.php)$ $1 [L] >> > RewriteRule . index.php [L] >> > #Redirect 301 / http://intranet/template_departments.cfm >> > >> > >> > This looks too complex for me to interpret for sure without real-world >> > tests, particularly, because [L] in .htaccess context does not actually >> > end >> > rewriting like one might though. (If you really want to be sure no >> > redirect >> > is already in progress, test REDIRECT_STATUS environment variable like >> > this: >> > >> > RewriteCond %{ENV:REDIRECT_STATUS} ^$ >> > >> > .) >> > >> > Looks like you have added some rules while trying to solve your problem, >> > while rest came from default Wordpress installation. I'd leave only >> > default >> > Wordpress ones and see if it solves unnecessary redirects. >> > >> > -- >> > >> > With Best Regards, >> > Marat Khalili >> >> >> >> -- >> Daniel Ferradal >> IT Specialist >> >> email dferradal at gmail.com >> linkedin es.linkedin.com/in/danielferradal >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx >> For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx >> > -- Daniel Ferradal IT Specialist email dferradal at gmail.com linkedin es.linkedin.com/in/danielferradal --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx