[advanced search]
NamePros Domain Auction
Live Event This Thursday at 6PM EST - Prebidding open now
18 members in the live chat room. Join Chat!
Register Rules & FAQ NP$ Store Active Threads Mark Forums Read
Domain Name Industry Newsletter
Go Back   NamePros.Com > Design and Development > Website Development
User Name
Password

Old 09-02-2007, 04:34 PM   · #1
SoniaXG
New Member
 
Trader Rating: (0)
Join Date: Sep 2007
Posts: 6
NP$: 0.00 (Donate)
SoniaXG is an unknown quantity at this point
htaccess Redirect

I wish to remove an entire directory of content and redirect to my index.php page.

Would somebody be kind enough to give an example of the correct .htacess directive. I have tried:

Redirect /mydirectory/ http://www.mysite.com/index.php?

This works to a degree, however all redirects are like this:

http://mysite.com/index.php?myoldcontent.html

I would like the redirect to be a clean: http://mysite.com/index.php


Thanks!

Sonia


Please register or log-in into NamePros to hide ads
SoniaXG is offline   Reply With Quote
Old 09-03-2007, 03:11 PM   · #2
SoniaXG
New Member
 
Trader Rating: (0)
Join Date: Sep 2007
Posts: 6
NP$: 0.00 (Donate)
SoniaXG is an unknown quantity at this point
Found the solution - placed this in the old directory that had the content I have removed:


RedirectMatch 301 ^/ http://www.mysite.com/index.php




Sonia
SoniaXG is offline   Reply With Quote
Closed Thread

NamePros is a revenue sharing forum.

Thread Tools

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
Forum Jump


Site Sponsors
EscrowDNS Hunting Moon Website Header Design
Advertise your business at NamePros
All times are GMT -7. The time now is 12:42 AM.


Powered by: vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0