How can i change dynamic url to something else
2 posts by 2 authors in: Forums > CMS Builder
Last Post: October 1, 2010 (RSS)
By (Deleted User) - October 1, 2010
Hello,
For some reason even though my multi list page is /latest-news.php some links have crept into the site asking for /latest-news.php?some-keywords-9
Where really the detail page should be /news-newsletter.php?some-keywords-9
I have needed to change a few pages and the wrong links may have crept in - I just don't know how to redirect
/latest-news.php?some-keywords-9
to
/news-newsletter.php?some-keywords-9
Thanks Jono
For some reason even though my multi list page is /latest-news.php some links have crept into the site asking for /latest-news.php?some-keywords-9
Where really the detail page should be /news-newsletter.php?some-keywords-9
I have needed to change a few pages and the wrong links may have crept in - I just don't know how to redirect
/latest-news.php?some-keywords-9
to
/news-newsletter.php?some-keywords-9
Thanks Jono
Re: [jonoc73] How can i change dynamic url to something else
By Jason - October 1, 2010
Hi Jono,
Are you using the ['_link'] field to output all of your links? If so, you can change the values of your List Page URL and your Detail Page URL inside CMS Builder. That should take care of all of the changes for you.
If that doesn't work, you could put this code near the top of latest-news.php
This will do the redirect for you.
Hope this helps
Are you using the ['_link'] field to output all of your links? If so, you can change the values of your List Page URL and your Detail Page URL inside CMS Builder. That should take care of all of the changes for you.
If that doesn't work, you could put this code near the top of latest-news.php
$queryString = array_keys(@$_REQUEST);
if($queryString){
$url = "news-newsletter.php?".$queryString[0];
redirectBrowserToURL($url);
exit;
}
This will do the redirect for you.
Hope this helps
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com
Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/
Jason Sauchuk - Project Manager
interactivetools.com
Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/