View Single Post
Old 12-07-2013, 02:00 PM  
rastan
Master(bater)
 
rastan's Avatar
 
Industry Role:
Join Date: Aug 2010
Posts: 914
.htaccess pretty URL question

I need some rewrite help from a kind soul.

Okay, so I've got a domain with stuff on, and I want to refresh it with NEW stuff
So I set my stuff up in a subfolder /v2 and get everything working fine in there.
Now I wand to switch things over.
I can do simple 301/302 redirects to point the traffic to the new folder, but IDEALLY what I want is for stuff like

http://mydomain.com/v2/index.php to be read by browsers as
http://mydomain.com/index.php

removing the /v2/ from the URLs.
Im sure there's a rewrite pattern that can get that working

I've tried a couple of solutions I found on stack overflow but nothings hit the spot yet.
__________________
Rob | Britsexcash.com | @splatbukkake | Skype: BritSexCash
rastan is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook