Irish SEO,  Marketing & Webmaster Discussion

 

Using mod_rewrite on subdomains?

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 ...


Go Back   Irish SEO, Marketing & Webmaster Discussion > Webmaster Help > Server / Technical Administration Tips and Queries

Register Forum Rules FAQDonate Members List Calendar Search Today's Posts Mark Forums Read


Notices

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-09-2006, 05:35 PM
Wannabe Geek
 
Join Date: Sep 2006
Posts: 193
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
dude will become famous soon enough
Default Using mod_rewrite on subdomains?

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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2 (permalink)  
Old 05-09-2006, 12:27 AM
blacknight's Avatar
Web Slave
Recent Blog:
 
Join Date: Jan 2006
Location: Ireland
Posts: 6,521
blacknight is a splendid one to beholdblacknight is a splendid one to beholdblacknight is a splendid one to beholdblacknight is a splendid one to beholdblacknight is a splendid one to beholdblacknight is a splendid one to beholdblacknight is a splendid one to behold
Send a message via ICQ to blacknight Send a message via AIM to blacknight Send a message via MSN to blacknight
Default

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
And were to make the document root of the subdomain point to that...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3 (permalink)  
Old 05-09-2006, 08:36 PM
Wannabe Geek
 
Join Date: Sep 2006
Posts: 193
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
dude will become famous soon enough
Default

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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4 (permalink)  
Old 05-09-2006, 09:09 PM
blacknight's Avatar
Web Slave
Recent Blog:
 
Join Date: Jan 2006
Location: Ireland
Posts: 6,521
blacknight is a splendid one to beholdblacknight is a splendid one to beholdblacknight is a splendid one to beholdblacknight is a splendid one to beholdblacknight is a splendid one to beholdblacknight is a splendid one to beholdblacknight is a splendid one to behold
Send a message via ICQ to blacknight Send a message via AIM to blacknight Send a message via MSN to blacknight
Default

It's all in your apache config

Code:
<VirtualHost *:80>

ServerName blah.yourdomain.ie
DocumentRoot /whereyouputthefiles
DirectoryIndex somefile?query
.......
</VirtualHost>
No guarantees that it will work ...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5 (permalink)  
Old 14-09-2006, 10:49 AM
Frontpage User
Recent Blog: Post after a year
 
Join Date: Sep 2006
Posts: 23
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
bizhat will become famous soon enough
Send a message via AIM to bizhat Send a message via MSN to bizhat Send a message via Yahoo to bizhat
Default

Why not park the sub domian over main domain ?

In httpd.conf, you can add

Quote:
ServerAliase jobs.staff.ie Staff - Irish Jobs - Work in Ireland
__________________
Free File Hosting
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6 (permalink)  
Old 14-09-2006, 10:51 AM
Frontpage User
Recent Blog: Post after a year
 
Join Date: Sep 2006
Posts: 23
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
bizhat will become famous soon enough
Send a message via AIM to bizhat Send a message via MSN to bizhat Send a message via Yahoo to bizhat
Default

It seems forum auto convert urls, i typed www . staff. ie (with out space) and i got "Staff - Irish Jobs - Work in Ireland"
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
modrewrite, subdomains

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


Sponsored links

Paid On Results


All times are GMT +1. The time now is 11:38 AM.


Powered by: vBulletin Version 3.7.3, Copyright ©2000 - 2008, Jelsoft Enterprises Limited.
Hosted in Ireland by Blacknight - Test your ISP |Irish Hosting Directory| Armchair.ie|Logo by Eden Web Design|Avatars by Afterglow |Latest Blog Entries | VPS HostingAd Management by RedTyger

Search Engine Friendly URLs by vBSEO 3.2.0