Is that a 301 redirect?
Main Topics
Browse All TopicsHello,
I need to redirect
www.nlpca.com/DCweb
to
www.nlpca.com
How do I do this?
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Just making sure, so:
RedirectPermanent /DCweb/ http://www.nlpca.com/
is a type of 301 redirect?
Google's Webmaster Guidelines says that it's best to only use 301 redirects for SEO and not other types of permanent redirects.
http://httpd.apache.org/do
and scroll down to RedirectPermanent
As I am not aware of the technology used by this website of yours, I am mentioning various methods which can used for redirection. choose the one that fits you or comment for additional help.
<h2>IIS Redirect</h2>
Create a .htaccess file with the below code, it will ensure that allyour directories and pages of your old domain will get correctlyredirected to your new domain.
The .htaccess file needs to be placed in the root directory of your oldwebsite (i.e the same directory where your index file is placed)
Options +FollowSymLinks
RewriteEngi
RewriteRule (.*) http://www.nlpca.com/$1 [R=301,L]
What do you mean by "regular 301"?
See also my answer to http://www.experts-exchang
By "regular 301" I mean this
redirect 301 /DCweb/ http://www.nlpca.com/
I assume it's the same thing.
Why is this 301 redirect stripping "DCweb" from all of our URLs?
It causes all pages to turn to 404 errors for me.
For example, this page's menu link goes to this
http://www.nlpca.com/DCweb
but after the 301 redirect Deane10 gave me, now becomes this:
http://www.nlpca.com/Free_
and creates a 404 error. What could be causing this in our Joomla site?
I will show you the whole file if you look at the info below and think it would not be a security problem:
########## Begin - Rewrite rules to block out some common exploits
## If you experience problems on your site block out the operations listed below
## This attempts to block the most common type of exploit `attempts` to Joomla!
#
# Block out any script ... and so on...
RewriteCond ... and so on.
> By "regular 301" I mean this
> redirect 301 /DCweb/ http://www.nlpca.com/
> I assume it's the same thing.
Yes, RedirectPermanent is a macro.
> What could be causing this in our Joomla site?
Joomla analyzes the URL-path. And if your site has the joomla URL /DCweb/something.html and you're requesting just /somethuing.html, joomla can't find the correct page to serve.
If you just wand to redirect /DCweb/ but not /DCweb/foo, use a RewriteRule (mixing mod_alias and mod_rewrite is not recommended due to interactions between both modules.
Business Accounts
Answer for Membership
by: NetExpert-WarszawaPosted on 2009-09-09 at 11:55:15ID: 25294380
RedirectPermanent /DCweb/ http://www.nlpca.com/