theniteowl
Programmer
Hi All,
I am trying to find a way to redirect links from pages inside a web site through a template file.
In other words any web page on my site that has a hyperlink, when that hyperlink is clicked I would like to send the request through a template file instead so that any links to pages on the same site are loaded within my template and links to external sites to load within a new window.
I am not familiar with htaccess or mod_rewrite. I have been reading various posts about their usage but nothing so far is specific to what I am trying to do so if anyone can give me some pointers I would appreciate it.
The purpose is to have a templated structure for a school web site, still allow the teachers to create their own pages
but have those pages load in a content window of the template.
Or is there a good way to otherwise intercept the HREF's and alter them as the page loads so I can pass the URL as a value to my template script?
All of the pages will originally come up loaded in the template but if the content page contains links not specifically setup to point to the template file it will break them out of the template and break all the navigation.
Thanks.
It's hard to think outside the box when I'm trapped in a cubicle.
I am trying to find a way to redirect links from pages inside a web site through a template file.
In other words any web page on my site that has a hyperlink, when that hyperlink is clicked I would like to send the request through a template file instead so that any links to pages on the same site are loaded within my template and links to external sites to load within a new window.
I am not familiar with htaccess or mod_rewrite. I have been reading various posts about their usage but nothing so far is specific to what I am trying to do so if anyone can give me some pointers I would appreciate it.
The purpose is to have a templated structure for a school web site, still allow the teachers to create their own pages
but have those pages load in a content window of the template.
Or is there a good way to otherwise intercept the HREF's and alter them as the page loads so I can pass the URL as a value to my template script?
All of the pages will originally come up loaded in the template but if the content page contains links not specifically setup to point to the template file it will break them out of the template and break all the navigation.
Thanks.
It's hard to think outside the box when I'm trapped in a cubicle.