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@httpd.apache.org
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx