Forum Moderators: phranque
I have a problem redirecting folders to variables, I have read the post of jdMorgan about converting dynamic to static, but I have a problem, such as :
[videos.domain.com...] redirects to
[domain.com...]
and
[videos.domain.com...] redirects to
[domain.com...]
and I don't no why I have so much trouble.
I wrote this :
RewriteCond %{HTTP_HOST} ^videos\.domain\.com [NC]
RewriteRule ^([^/]+)?$ index.php?page=videos&task=Show_Videos [L]
RewriteRule ^show_videos/([^/]+)?$ index.php?page=videos&task=show_videos¤t=$2 [L]
But it doesn't work!
Why?
10x for helping.
Well ,there are no error's it's just I don't know what to do!
I want to pass variables by directories, but some times I have just one variable, and sometimes I have more than 1.
So I wrote the code seen above, and It doesn't work.
I mean :
[video.domain.com...]
to resirect to :
[domain.com...]
[video.domain.com...]
to resirect to :
[domain.com...]
[video.domain.com...]
to resirect to :
[domain.com...]
and I don't know why it doesn't work.