Solved

Cannot locate .htaccess file -- how to do 301 redirects

Posted on 2013-11-21
1
490 Views
Last Modified: 2013-12-18
I have a site installed using the Blackmonk platform: http://www.blackmonk.com/

We are trying to arrange some 301 redirects but I don't see an htaccess file anywhere in the backend. How would I go about easily implementing some 301 redirects on this platform, or just in general? Can I just create one from scratch and if so, where would I put it?
0
Comment
Question by:ChilliSauce
1 Comment
 
LVL 42

Accepted Solution

by:
Chris Stanyon earned 500 total points
ID: 39666305
If there is no htaccess file then in theory you would just create it and drop it into the web root of your site. The name for it is:

.htaccess

including the starting dot. This is however, the norm for servers running Apache. If your host runs a different server (IIS etc) then htaccess may not work.

You may also need to speak with them to make sure you have the ability to use an htaccess file.

Just because you don't see it, doesn't mean it's not there. Dot files by default are hidden.

Maybe just create a simple one with a 302 redirect and see if it works. Create the with the following content (obviously substitute you own details)

Redirect 302 oldfile.html newfile.html

Open in new window

Upload your htacess file to the root and try and access oldfile.html - see if you get the redirect. If you do, you're good to go :)
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

It’s a strangely common occurrence that when you send someone their login details for a system, they can’t get in. This article will help you understand why it happens, and what you can do about it.
Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
This tutorial demonstrates how to identify and create boundary or building outlines in Google Maps. In this example, I outline the boundaries of an enclosed skatepark within a community park.  Login to your Google Account, then  Google for "Google M…
Learn how to set-up PayPal payment integration in your Wufoo form. Allow your users to remit payment through PayPal upon completion of your online form. This is helpful for collecting membership payments, customer payments, donations, and more.

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