Hey guys,
as stated in one of my posts/threads before i am working on a wap/web community and im getting quite forward with it, my problem now is i use mod_rewrite to make the url friendly
for example i have this
Options +FollowSymlinks
RewriteEngine on
DirectorySlash on
ErrorDocument 404 http://domain.com/wap/error.php
RewriteRule ^users/([0-9]+)-([a-z]+) users.php?id=$1 [NC]
this makes profiles available like http://domain.com/wap/users/?id=1 now the problem is if i open the profile like http://domain.com/wap/users?id=1 my theme messes up incase it wont load at all because the path is messed, now i am looking for a way to force the leading / with mod_rewrite or if needed even with php is there any way to do that?
foreach ($_SERVER as $server => $value)
{
echo "$server is $value<br />";
}