Skip to main content
5 votes

How do I redirect from domain to subdomain?

Dealing with the redirect in .htaccess can be trickier than it seems at first. First off, make sure you've cleared your browser's cache completely, as sometimes cached data can hide the actual changes ...
Evgeny Yudin's user avatar
4 votes

How to rewrite using .htacess i need a ? in the link it is supposed to go to

I think it should look like this: RewriteCond %{HTTP_HOST} ^mydomain\.com$ [OR] RewriteCond %{HTTP_HOST} ^www\.mydomain\.com$ RewriteRule ^weather\-is\-good$ https://audiofile.com/s-1234?si=5678 [R=...
Evgeny Yudin's user avatar
1 vote

.htaccess: Restrict access to specific file to one specific referrer

<Files fancy\.pdf> RewriteCond %{HTTP_REFERER} !^/format/showfancy/ RewriteRule - [forbidden] </Files> There are few issues here... You should not include mod_rewrite directives ...
MrWhite's user avatar
  • 43k

Only top scored, non community-wiki answers of a minimum length are eligible