I need to Redirect my mistyped url into main domain ..
For example if user type mistyped.domain.com or domain.com/mistyped (which does not exists) .It should display the content of domain.com but the url in adress bar should be same as mistyped.domain.com or domain.com/mistyped
Note : I googled and tried some of the .htaccess but its just redirecting.
The url in the adressbar is not samejust domain.com not mistyped.domain.com.
Below code worked