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 ...
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=...
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 ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
htaccess × 1698mod-rewrite × 421
redirects × 400
apache × 357
301-redirect × 256
url-rewriting × 197
seo × 167
wordpress × 140
php × 133
url × 96
apache2 × 96
https × 87
subdomain × 63
domains × 49
404 × 42
security × 35
google-search-console × 34
web-hosting × 34
robots.txt × 28
cpanel × 28
no-www × 28
web-crawlers × 25
html × 24
dns × 24
403-forbidden × 21