![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
|
New Webmasters ask "How-To" questions here. This is where other fucking Webmasters help. |
|
Thread Tools |
![]() |
#1 |
Master(bater)
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. |
![]() |
![]() ![]() ![]() ![]() |
![]() |
#2 |
Confirmed User
Industry Role:
Join Date: Jul 2013
Posts: 89
|
RewriteRule ^(.*)?$ /v2/$1 [L]
|
![]() |
![]() ![]() ![]() ![]() |
![]() |
#3 |
Master(bater)
Industry Role:
Join Date: Aug 2010
Posts: 914
|
thx man, will try it
|
![]() |
![]() ![]() ![]() ![]() |