Webmaster Forum


Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Coding Forum Problems with your code? Let's hear about it.

   

Reply
 
LinkBack Thread Tools Display Modes
Old 11-12-2003, 07:00 PM   #1 (permalink)
Member
 
Join Date: 11-02-03
Posts: 34
iTrader: 0 / 0%
Latest Blog:
None

T-Kai is liked by many
Htaccess Issue

I am posting this again, because the other thread got no replies regarding the htaccess issue.

"RewriteRule ^Songs/([^/]+)/([^/]+)-([^/]+)\.php$ /Songs/?show=song&id=$1&artist=$2&title=$3 [L]"

This links from http://www.domain.com/Songs/ID/ARTIST-TITLE.php to the script that actually executes the command.

I would like to resolve to the same script, hosted under the main subdomain (www), but access it from a different subdomain.

I would like it to look like this :
http://music.domain.com/Songs/ID/ARTIST-TITLE.php

instead of this :

http://www.domain.com/Songs/ID/ARTIST-TITLE.php

Thank you,
Luka
T-Kai is offline  
Add Post to del.icio.us
Reply With Quote
Old 11-12-2003, 07:19 PM   #2 (permalink)
Inactive
 
Join Date: 10-15-03
Location: BC, Canada
Posts: 28
iTrader: 0 / 0%
Latest Blog:
None

Anthony is liked by many
Send a message via ICQ to Anthony Send a message via AIM to Anthony Send a message via MSN to Anthony
You don't need to use rewrite rules to perform that action. Create a new subdomain and setup a virtualhost domain pointing to the source of your pages. Thus you can point music.domain.com to www.domain.com without any extra Apache overhead. If you'd like example code, please don't hesitate to ask and I can walk you through the setup process.
Anthony is offline  
Add Post to del.icio.us
Reply With Quote
Old 11-13-2003, 11:33 AM   #3 (permalink)
Member
 
Join Date: 11-02-03
Posts: 34
iTrader: 0 / 0%
Latest Blog:
None

T-Kai is liked by many
I would need apache in order to do it the way I want. I don`t want to create new subdomain virtual sites. I would just add subdomains to the DNS then use apache to do the rest. Is this possible?

I might do what you suggested though. Will see about this. I would really prefer htaccess though.
T-Kai is offline  
Add Post to del.icio.us
Reply With Quote
Old 11-14-2003, 06:26 PM   #4 (permalink)
Inactive
 
Join Date: 10-15-03
Location: BC, Canada
Posts: 28
iTrader: 0 / 0%
Latest Blog:
None

Anthony is liked by many
Send a message via ICQ to Anthony Send a message via AIM to Anthony Send a message via MSN to Anthony
I think we may be talking about the same thing. htaccess files and httpd config files are exactly the same things, only with different names. The "rest" you're speaking of is usually a virtual host in an apache configuration file :)
Anthony is offline  
Add Post to del.icio.us
Reply With Quote
Old 11-14-2003, 06:36 PM   #5 (permalink)
Crap Bag
 
Join Date: 10-12-03
Posts: 1,727
iTrader: 0 / 0%
Latest Blog:
None

PhilC is web crapPhilC is web crapPhilC is web crapPhilC is web crapPhilC is web crapPhilC is web crapPhilC is web crapPhilC is web crapPhilC is web crapPhilC is web crapPhilC is web crap
The httpd config file is the configuration file for the server. .htaccess files are nothing like that.
PhilC is offline  
Add Post to del.icio.us
Reply With Quote
Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum

Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
WOMD - Issue or Non-issue John Scott Politics 1 08-02-2007 09:30 AM
htaccess & SSL Sketch Coding Forum 3 08-28-2006 04:12 AM
htaccess issue theChronic Coding Forum 1 06-14-2006 01:32 AM
What can you do with .htaccess? Jason Web Design Lobby 4 12-03-2004 11:39 PM
Htaccess issue & Search engine positioning question T-Kai Coding Forum 10 11-04-2003 05:51 PM


Sponsor Links
Get exposure! Get exposure! Find Scripts Web Hosting Directory Get exposure! SEO Blog


All times are GMT -7. The time now is 03:10 AM.
© Copyright 2008 V7 Inc