|
Description: |
We need someone who can configure and set up mod rewrite on our dedicated server with DirectAdmin.
Currently we use DirectAdmin on our dedicated server. For each website/url we have set up an account.
When I use the file manager I see in the map public_html an .htaccess file containing the following (This is what the server/directadmin sets up by default. )
RewriteEngine On
RewriteCond %{REQUEST_URI} !^/~accountname/domain.com(.*) [NC]
RewriteRule ^(.*)$ /~accountname/domain.com/$1
accountname=account name for this account as set up by us on the server
domain.com is the name of the associated domain
In the lower directory name domain.com there are several folders (folders for created sub domains on the server - without .htacess) and files:
amongst others there is another .htaccess file containing the following:
Options +FollowSymLinks
RewriteEngine On
RewriteRule Google http://www.google.com/? [NC,R]
When I go to http://domain.com/google the redirect is being performed. When I move the RewriteRule Google to the other .htaccess file the redirect is no longer being performed.
So I have to put the mod rewrite rules in the sub folder called domain.com. But rules for sub domains are not working. We need someone who can setup up working rules for sub domains.
Further we need additional help on other mod rewrite rules.
Additional Info (Added 10/16/2008 at 8:08 EST)...We prefer to give developers access to the directadmin console. We need to have everything changed in the existing .htacess files otherwise we cannot change it in the future by our own.
Futher we would appreciate it if we can contact the developers for futher help.
Additional explanation of we need additional help on other mod rewrite rules:
We have several deep links on our sites to several media agency / network urls. These are practically the same in the way these are constructed.
we would like to use urls on our site(s) which redirect to other tracking urls and eventually redirect to the determined destination url. we woudl like to use urls as:
http://campaign.info/a/?a=websiteid&c=campaignid&m=graphicid&u=deeplink&r=referenceid1-referenceid2&q=1
http://campaign.info/a/ &a=websiteid, &c=campaignid, &m=graphicid, &u=deeplink (always encoded) &r=referenceid &q=networkid:
example:
http://campaign.info/a/?a=1201&c=211&m=128&r=REF1-REF2&q=1&u=http%3A//books.google.nl/books%3Fas_q%3Dphp%26num%3D100%26btnG%3DGoogle+zoeken%26as_epq%3D%26as_oq%3D%26as_eq%3D%26as_libcat%3D0%26as_brr%3D0%26as_vt%3D%26as_auth%3D%26as_pub%3D%26as_drrb%3Dc%26as_miny%3D2006%26as_maxy%3D%26as_isbn
sometimes we need to change the urls when we need to swift from tracking network. It is a lot of work to change the complete urls. It would be so convenient if we could use mod rewrite to change the redirect of the links (just by chaning one parameter).
the &q= parameter should determine the redirect url (after the redirect url comes the ? parameter) and the (possible) change of the other parameters. the q= paramter will not be passed to the destination url
For example:
Using q=1 will redirect to http://example1.com/click &a=websiteid, &p=campaignid &g=graphicid, &url=deeplink &epi=referenceid example:
example
http://campaign.info/a/?q=1&a=1201&c=211&m=128&r=REF1-REF2&q=1&u=http%3A//books.google.nl/books%3Fas_q%3Dphp%26num%3D100%26btnG%3DGoogle+zoeken%26as_epq%3D%26as_oq%3D%26as_eq%3D%26as_libcat%3D0%26as_brr%3D0%26as_vt%3D%26as_auth%3D%26as_pub%3D%26as_drrb%3Dc%26as_miny%3D2006%26as_maxy%3D%26as_isbn
will redirect to
http://example1.com/click?&a=1201&p=211&g=128&epi=REF1-REF2&url=http%3A//books.google.nl/books%3Fas_q%3Dphp%26num%3D100%26btnG%3DGoogle+zoeken%26as_epq%3D%26as_oq%3D%26as_eq%3D%26as_libcat%3D0%26as_brr%3D0%26as_vt%3D%26as_auth%3D%26as_pub%3D%26as_drrb%3Dc%26as_miny%3D2006%26as_maxy%3D%26as_isbn
Using q=2 to redirect to http://example2.com/c/ &wi=websiteid, &si=campaignid &li=graphicid, &dl=deeplink (WITHOUT DEEP LINK DOMAINNAME) &ws=referenceid example: http://www.example2.com/c/?wi=1201&si=211&li=128&ws=REF1-REF2&dl=/books%3Fas_q%3Dphp%26num%3D100%26btnG%3DGoogle+zoeken%26as_epq%3D%26as_oq%3D%26as_eq%3D%26as_libcat%3D0%26as_brr%3D0%26as_vt%3D%26as_auth%3D%26as_pub%3D%26as_drrb%3Dc%26as_miny%3D2006%26as_maxy%3D%26as_isbn
Using q=3 to http://clicks.example3.com/_c &aid=websiteid, &si=campaignid &c?_b=graphicid, &4dadvn=referenceid, example &_m=deeplink http://clicks.example3.com/http://campaign.info/a/?aid=1201&si=211&c?_b=128&4dadvnREF1-REF2&q=1&u=&_m=http%3A//books.google.nl/books%3Fas_q%3Dphp%26num%3D100%26btnG%3DGoogle+zoeken%26as_epq%3D%26as_oq%3D%26as_eq%3D%26as_libcat%3D0%26as_brr%3D0%26as_vt%3D%26as_auth%3D%26as_pub%3D%26as_drrb%3Dc%26as_miny%3D2006%26as_maxy%3D%26as_isbn
so by just changing the q= parameter we would like to change the redirection urls
The root of campaign.info and campaign.info/a should remain empty when approached without website and campaign id
|