Mobile app version of vmapp.org
Login or Join
Jennifer507

: Non-www URL goes to www-homepage instead of that particular page Let's say my domain is www.example.com. if I type in example.com it goes to www.example.com - which is fine. But the problem

@Jennifer507

Posted in: #Apache #NoWww #Url #UrlRewriting

Let's say my domain is example.com. if I type in example.com it goes to example.com - which is fine.

But the problem is if I type in example.com/jamie/ it still goes to example.com - the homepage of the website.

In order to go to the particular URL I have to type in with example.com/jamie/ to land on that URL.

How do I make it go to a particular URL without type www?

My backend is on Django, Apache, AWS EC2.

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Jennifer507

1 Comments

Sorted by latest first Latest Oldest Best

 

@Murray155

Depends how you are doing the redirection currently. But whatever it is, change it to the following in a virtual host with a ServerName of example.com (or in the default virtual host if using that as a catchall vhost).

Redirect / www.example.com/

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme