2
votes
5answers
457 views
How to 301 redirect Non-WWW to WWW version
What is your favorite way do redirect all pages from the Non-WWW to WWW version?
I know there are several different ways, I'd like to know how you do this in practice.
Code fragm …
0
votes
3answers
375 views
Temporary redirects all visitors but me to a maintenance page
I need to make some changes (deploy a new template) on my website and I want to temporary redirect all visitors to a maintenance page. I don't know how long it will take to apply t …
1
vote
4answers
273 views
How to redirect all pages to the homepage
I need to temporary redirect all pages of a domain to the homepage of the same domain.
I added the following code to my .htaccess file but it doesn't work.
RedirectMatch ^/(.+)$ …
1
vote
2answers
138 views
Redirect an user based on cookie with Apache
Is it possible to redirect an user depending on a specific cookie value using Apache configurations only?
When an user enter the homepage, I need to check whether it's logged into …
0
votes
1answer
121 views
Redirect website subdirectory to subdomain
How can I redirect all requests going to a subdirectory to another subdomain?
For example, I'd like to redirect all requests for http://example.com/folder to http://folder.example. …
0
votes
1answer
17 views
How to block the access to pages if the user comes from an external domain?
I want block the access to some pages of my website only if the user comes from a different domain from www.mysite.com.
My web site is hosted on a Linux based shared hosting.
Can …
0
votes
2answers
57 views
Strange .htaccess script
This was uploaded to one of my FTP folders. I'm not familiar with Apache, but still curious - can someone tell me what type of dastardly act this file is trying to commit? Thanks!
…
