Solved

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

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How can I split the array as 4 rows per line? 5 82
SQL Injected data? 8 114
Error viewing ASP page 12 151
Redirect Website for Mobile Devises 7 42
Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
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…
Wufoo.com provides powerful tools for surveying targeted groups, and utilizing data from completed surveys to find trends, discover areas of demand or customer expectation, and make business decisions on products or services.
Use Wufoo, an online form creation tool, to make powerful forms. Learn how to selectively show certain fields based on user input using rules to gather relevant information and data from your forms. The rules feature provides you with an opportunity…

863 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

22 Experts available now in Live!

Get 1:1 Help Now