![]() ![]() |
| thegreatpursuit |
Dec 20 2010, 10:00 PM
Post
#1
|
|
Group: Members Posts: 6 Joined: 7-August 10 Member No.: 12,452 |
I want to redirect
mysite.com/main/?p=1 mysite.com/main/?p=2 mysite.com/main/?p=3 mysite.com/main/?p=4 mysite.com/main/?p=5 etc etc to mysite.com How can I do this with an htaccess file without having to manually redirect all of them? Thanks, Brandon |
| pandy |
Dec 20 2010, 10:51 PM
Post
#2
|
|
Don't like donuts. Don't do MySpace. ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: WDG Moderators Posts: 13,719 Joined: 9-August 06 Member No.: 6 |
IIRC you can do...
CODE RedirectPermanent /main/ http://mysite.com -------------------- |
| Darin McGrew |
Dec 20 2010, 11:37 PM
Post
#3
|
|
WDG Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Root Admin Posts: 7,851 Joined: 4-August 06 From: Mountain View, CA Member No.: 3 |
Failing that, look for the "Filesystem Reorganization" example in the Apache URL Rewriting Guide:
http://httpd.apache.org/docs/2.0/misc/rewriteguide.html#url -------------------- Darin McGrew
WDG Member since 1998 |
![]() ![]() |
|
Lo-Fi Version | Time is now: 19th May 2013 - 12:57 AM |