Solved

apache .htacccess  rewrite 301

Posted on 2011-09-24
2
310 Views
Last Modified: 2012-05-12
i'm redirecting .html to php for a particular website

is the following sufficient (espec for search engine favorability) ...

RewriteEngine On

RewriteCond %{HTTP_HOST} !^$ [NC]
RewriteRule ^index.html$ index.php [L]

Open in new window


or do i need in the last specifier  
 [L,R=301]

Open in new window



thanks
0
Comment
Question by:willsherwood
2 Comments
 
LVL 2

Accepted Solution

by:
maricksville earned 500 total points
ID: 36594464
I believe the 301 flag should be used where you want to permanently redirect. As in redirect to a file where the old file no longer exists.

This is done often when you remove old content from a website and rather than serving a 404 page you redirect traffic to a new page.

If the old HTML files will no longer exist and you are sure you will permanently use PHP files, then I would use the 301 flag.

Hope this helps.
0
 

Author Closing Comment

by:willsherwood
ID: 36595006
thank you...
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

It is possible to boost certain documents at query time in Solr. Query time boosting can be a powerful resource for finding the most relevant and "best" content. Of course the more information you index, the more fields you will be able to use for y…
In Solr 4.0 it is possible to atomically (or partially) update individual fields in a document. This article will show the operations possible for atomic updating as well as setting up your Solr instance to be able to perform the actions. One major …
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now