compu73rg33k
Technical User
Okay so I used to have this which works.
That right there successfully rewrites subdomains. Everything's good.
Now I want to add an image argument to the end of the url, and have it rewrite it with it. So where blah.domain.com would rewrite to /home/me/public_html/gay.php?name=blah I now want blah.domain.com/?image=2 to rewrite to /home/me/public_html/gay.php?name=blah&image=2. I thought this shouldn't be TOO hard, but it's cost me hours of different attempts. My latest which I def thought would work, is
Right now this just rewrites to the index.php file.
Anyone know how I can sucessfully accomplish this?
Thanks.
Code:
RewriteEngine On
RewriteCond %{HTTP_HOST} !^([URL unfurl="true"]www\.)[/URL]
RewriteCond %{HTTP_HOST} ^([^.]+)\.domain\.com
RewriteRule . /home/me/public_html/gay.php?name=%1 [L]
That right there successfully rewrites subdomains. Everything's good.
Now I want to add an image argument to the end of the url, and have it rewrite it with it. So where blah.domain.com would rewrite to /home/me/public_html/gay.php?name=blah I now want blah.domain.com/?image=2 to rewrite to /home/me/public_html/gay.php?name=blah&image=2. I thought this shouldn't be TOO hard, but it's cost me hours of different attempts. My latest which I def thought would work, is
Code:
RewriteEngine On
RewriteCond %{HTTP_HOST} !^([URL unfurl="true"]www\.)[/URL]
RewriteCond %{HTTP_HOST} ^([^.]+)\.domain\.com/?image=([^.]+)
RewriteRule . /home/me/public_html/gay.php?name=%1&image=%2 [L]
Right now this just rewrites to the index.php file.
Anyone know how I can sucessfully accomplish this?
Thanks.