This is a discussion on Using mod_rewrite on subdomains? within the Server / Technical Administration Tips and Queries forums, part of the Webmaster Help category; Hello all, I hope someone can help me with this... I have a subdomain, jobs.staff.ie I want jobs.staff.ie to redirect ...
| |||||||
| Register | Forum Rules | FAQ | Donate | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| Hello all, I hope someone can help me with this... I have a subdomain, jobs.staff.ie I want jobs.staff.ie to redirect to Staff - Irish Jobs - Work in Ireland Does anyone know how I can do this? RewriteRule ^jobs/index\.html Staff - Irish Jobs - Work in Ireland - works fine, but it changes the URL to Staff - Irish Jobs - Work in Ireland. I want to keep the URL as jobs.staff.ie Any help appreciated! Thank you. |
| |||||
| I haven't come up with a solution for you.. well not exactly... If you could make the DirectoryIndex of the vhost to be that query string ie. Code: DirectoryIndex index.php?yourquerystring
__________________ Hosting & Domains|Plesk Vps Hosting|Geek / Cool Stuff|Films.ie|Cool Sites|Monetisation Tips|Movie Chat Energise your forum! Click here for info |
| ||||
| Hey, Thanks for the reply. I'm not sure I fully understand though... Which file would I need to add "DirectoryIndex index.php?yourquerystring" to? Also, when you say "make the document root of the subdomain point to that..." do you mean do a htaccess redirect? Apologies if I'm being silly... Thanks. |
| |||||
| It's all in your apache config Code: <VirtualHost *:80> ServerName blah.yourdomain.ie DocumentRoot /whereyouputthefiles DirectoryIndex somefile?query ....... </VirtualHost>
__________________ Hosting & Domains|Plesk Vps Hosting|Geek / Cool Stuff|Films.ie|Cool Sites|Monetisation Tips|Movie Chat Energise your forum! Click here for info |
| ||||
| Why not park the sub domian over main domain ? In httpd.conf, you can add Quote:
__________________ Free File Hosting |
| ||||
| It seems forum auto convert urls, i typed www . staff. ie (with out space) and i got "Staff - Irish Jobs - Work in Ireland" |
| Tags |
| modrewrite, subdomains |
| Thread Tools | |
| Display Modes | |
|
|
| ||||||||
| | ![]() | |||||||