the url on my local project is :-
http://localhost/mysite/KB/Type-1/General-Article and on server it is:-
http://www.mysite.com/KB/Type-1/General-Article from both the urls, I want to fetch the URL part until Type-1 without slash
ie from localhost website address, I want:-
http://localhost/mysite/KB/Type-1 and from server, I want :-
http://www.mysite.com/KB/Type-1 How can I do this? Please help ..thanks
Please note that Type-1 is not a fixed, it wcan change. It can be anything like "Type-2", "User-Articles", etc.
Thanks for the answers but will this still work if there is a slash at the end of the URL too? like this:- http://www.mysite.com/KB/Type-1/General-Article/ Please note that the text "KB" in the URL is FIXED.