Go Back   CodingForums.com > :: Server side development > Apache configuration

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 05-20-2012, 05:13 PM   PM User | #1
NancyJ
Senior Coder

 
NancyJ's Avatar
 
Join Date: Feb 2005
Location: Bradford, UK
Posts: 3,162
Thanks: 19
Thanked 65 Times in 64 Posts
NancyJ will become famous soon enough
.htaccess redirect subfolder to subdomain

I have a site that was on example.com/rewards which should now be rewards.example.com
I was able to rewrite the request based on checking the host (and if it wasn't rewards.example.com redirect there) but there are images and redirects that use /rewards eg. /rewards/images/logo.jpg and header('Location: /rewards');

I would rather not rewrite all of them by hand but I have tried various different things and can't seem to get any request to /rewards/* to redirect to rewards.example.com/*
__________________
http://www.hazelryan.co.uk
NancyJ is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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

Forum Jump


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


Advertisement
Log in to turn off these ads.