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


# 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
php_value post_max_size 50M
php_value max_execution_time 500
php_value max_input_time 500
php_value memory_limit 128M


On Sun, Jan 21, 2018 at 2:31 AM, Marat Khalili <m...@rqc.ru> wrote:

> On 18/01/18 07:53, Kory Wheatley wrote:
>
> When someone types to go to http://sftpinterface/deptblogs/  or a link I
> need it to redirect to http://intranet/template_departments.cfm.  Which I
> was able to accomplish in the index.php header content with
>
> <?php
> /* Redirect browser */
>  header("Location: http://intranet/template_departments.cfm";);
>
> /* Make sure that code below does not get executed when we redirect. */
> exit;
> ?>
>
> It should work.
>
> But the problem is all pages underneath http://sftpinterface/deptblogs
> redirect to  http://intranet/template_departments.cfm.  [...]
>
> This shouldn't happen. Most likely there's another redirect rule
> somewhere, e.g. in .htaccess file.
>
> --
>
> With Best Regards,
> Marat Khalili
>

Reply via email to