Solved

apache .htacccess  rewrite 301

Posted on 2011-09-24
2
316 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

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

In my time as an SEO for the last 2 years and in the questions I have assisted with on here I have always seen the need to redirect from non-www urls to their www versions. For instance redirecting http://domain.com (http://domain.com) to http…
If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

815 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

8 Experts available now in Live!

Get 1:1 Help Now