Menu
Hi
i would like to redirect if the user type: [url]www.website.com/news
to : [url]www.website.com?index.php?action=news
i supose this is not happening because when i type :[url]www.website.com/news
index.php file is not called
how can i redirect the url? ?
i am using :
if (location.host == “www.website.com/news”) {
document.location = “index.php?action=news”;
} else if (location.host == “www.website.com/talk”) {
document.location = “index.php?action=talk”;
}