- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
url redirects of my website
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
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: url redirects of my website
Redirection from subdir to subdomain
From – http://www.demo.com/mydir/
To – http://subdom.demo.com/
[code autolinks=”false”]
# 301 redirect for main pages
RedirectMatch 301 ^/mydir/$ http://subdom.demo.com/
[/code]
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.
https://www.manishmittal.com/
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: url redirects of my website
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
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: url redirects of my website
You can keep any name of subdomain, you want to redirect it.
https://www.manishmittal.com/
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: url redirects of my website
Sorry didnt get this, do you mean you are redirecting to home page always is it?
https://www.manishmittal.com/