cancel
Showing results for 
Search instead for 
Did you mean: 

url redirects of my website

Highlighted

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

 

5 REPLIES 5
Highlighted

Re: url redirects of my website

@tippanna_pawar 

 

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.

Manish Mittal
https://www.manishmittal.com/
Highlighted

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

 

Highlighted

Re: url redirects of my website

@tippanna_pawar 

 

You can keep any name of subdomain, you want to redirect it.

Manish Mittal
https://www.manishmittal.com/
Highlighted

Re: url redirects of my website

 
 
Will i get any link juice? all authority will be redirect to the homepage Smiley Sad help please.
Highlighted

Re: url redirects of my website

@mycoles075c0fc 

 

Sorry didnt get this, do you mean you are redirecting to home page always is it?

Manish Mittal
https://www.manishmittal.com/