i placed project in server folder eg: domain.com/folder.
now i want to make it live but i dont want to show that folder name ,on every redirect it should domain name only. is that possible..? if it is then please provide us solution
# 301 redirect for main pages
RedirectMatch 301 ^/mydir/$ http://subdom.demo.com/
You can do by creating subdomain as well from your cpanel:
http://subdom.demo.com/ like this and assing directory to this subdomain.
After that just change url in core_config_data table as well otherwise it will throw redirection error.
Thank you for reply.is there any alternate solution for this because i dont want to create subdomain. whenever i put domain name directly it should redirect to specified folder but folder name cannot be displayed in url
You can keep any name of subdomain, you want to redirect it.
Sorry didnt get this, do you mean you are redirecting to home page always is it?