Re: [users@httpd] Redirect only a specific index.php page to new location

2018-01-28 Thread Daniel
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

Re: [users@httpd] Redirect only a specific index.php page to new location

2018-01-26 Thread Kory Wheatley
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

Re: [users@httpd] Redirect only a specific index.php page to new location

2018-01-25 Thread Daniel
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 p

Re: [users@httpd] Redirect only a specific index.php page to new location

2018-01-25 Thread Marat Khalili
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

Re: [users@httpd] Redirect only a specific index.php page to new location

2018-01-24 Thread Kory Wheatley
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/m

Re: [users@httpd] Redirect only a specific index.php page to new location

2018-01-21 Thread Marat Khalili
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 http://intranet/template_departments.cfm";); /*

Re: [users@httpd] Redirect only a specific index.php page to new location

2018-01-21 Thread Adam Powell
Have you read this document? https://httpd.apache.org/docs/trunk/rewrite/avoid.html -Adam Powell > On Jan 19, 2018, at 3:33 AM, Luca Toscano wrote: > > Hi Kory, > > 2018-01-18 5:53 GMT+01:00 Kory Wheatley : >> When someone types to go to http://sftpinterface/deptblogs/ or a link I >> need it

Re: [users@httpd] Redirect only a specific index.php page to new location

2018-01-19 Thread Luca Toscano
Hi Kory, 2018-01-18 5:53 GMT+01:00 Kory Wheatley : > 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 > > /* Redirect browser */ > he

[users@httpd] Redirect only a specific index.php page to new location

2018-01-17 Thread Kory Wheatley
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 http://intranet/template_departments.cfm";); /* Make sure that code below does not get exe