Solved

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

Posted on 2013-11-21
1
510 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 43

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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Suggested Solutions

These days, all we hear about hacktivists took down so and so websites and retrieved thousands of user’s data. One of the techniques to get unauthorized access to database is by performing SQL injection. This article is quite lengthy which gives bas…
FAQ pages provide a simple way for you to supply and for customers to find answers to the most common questions about your company. Here are six reasons why your company website should have a FAQ page
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…
This video teaches users how to migrate an existing Wordpress website to a new domain.

803 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