I'm new to mod_rewrite and I'm trying to write a rule for the following url:
http://www.example.com/kb/index?page=ho ... s_overview
to look like the following:
http://www.example.com/home/homebuyers/overview
Please help?
Regards
Options +FollowSymLinks
RewriteEngine On
RewriteRule ^([^/]+)/([^/]+)/?$ ./index?page=$1&c=$2 [QSA,L]
Options +FollowSymLinks
RewriteEngine On
RewriteRule ^/home/(.+)/(.+)?$ /kb/index?page=home&c=$1_$2 [PT]
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>Home Page</title>
<meta name="description" content="" />
<meta name="keywords" content="" />
.
.
<link rel="stylesheet" href="<%=Configuration.getStringForKey("appResources")%>/css/global.css" type="text/css" media="screen" charset="utf-8" />
.
.
src="<%=Configuration.getStringForKey("appResources")%>/js/jquery.js" type="text/javascript" charset="utf-8"></script>
.
.
</head>
Users browsing this forum: No registered users and 111 guests