Click here to Skip to main content
15,886,258 members
Please Sign up or sign in to vote.
1.00/5 (4 votes)
See more:
i have a url www.example.com/About/Founder i want to redirect user to this url when they write www.example.com/Founder & When they go to www.example.com/Seller they redirect to www.example.com/Seller/Seller

What I have tried:

i dont know anything about htaccess so i havent tried anything
Posted
Updated 2-Oct-19 1:36am
v2
Comments
Afzaal Ahmad Zeeshan 2-Oct-19 6:52am    
You can do that simply using JavaScript, or otherwise, you will need to include the URL rewriting in the application.

Which framework/runtime/version are you using to develop and host the web application.
MadMyche 2-Oct-19 7:03am    
If the "old" file doesn't exist, where do you out the javascript?

1 solution

.htaccess is quite easy to use and abuse, and there are plenty of tutorials out there
Redirect /Founder	/About/Founder
Redirect /Seller	/Seller/Seller

How do I redirect my site using a .htaccess file? - Media Temple[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900