Solved

web CMS on hosting service folder permissions

Posted on 2009-03-31
2
205 Views
Last Modified: 2013-12-14
Hi....
I'm trying to run a Joomla installation on a hosted server.
The root folder will never have read/write permissions.
This requires me to install it in a subfolder which I do have full control of.

The problem lies with a single line php redirect.
it redirects fine, but then puts the subfolder in the address bar, which I don't want.

so, if someone types http://www.cutlerplace.com
the redirect puts out http://www.cutlerplace.com/joomla

how do I stop that?
Thanks
0
Comment
Question by:Evan Cutler
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 14

Accepted Solution

by:
shobinsun earned 500 total points
ID: 24036394
Hello,

You can do it with .htaccess redirect method.

Using .htaccess for Redirection:

When using the Apache web server, directory-specific .htaccess files (as well as apache's main configuration files) can be used. For example, to redirect a single page:

Redirect 301 /oldpage.html http://www.example.com/newpage.html

To change domain names:

RewriteEngine On
 
RewriteCond %{HTTP_HOST} ^.*oldwebsite\.com$ [NC]
RewriteRule ^(.*)$ http://www.preferredwebsite.net/$1 [R=301,L]


http://en.wikipedia.org/wiki/URL_redirection

http://corz.org/serv/tricks/htaccess2.php


You can also do it:

create a sub domain in your domain and paste all the contents from joomla there.

Then go the sub domain .

Regards.
0
 
LVL 9

Author Closing Comment

by:Evan Cutler
ID: 31565182
It's a windows-based server.
of your solutions...the only one that appears to work is the subdomain solution.

Thanks much :)
Evan
0

Featured Post

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

Question has a verified solution.

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

This article will inform Clients about common and important expectations from the freelancers (Experts) who are looking at your Gig.
Lease-to-own eliminates the expenditure of hardware replacement and allows you to pay off the server over time. Usually, this is much cheaper than leasing servers. Think of lease-to-own as credit without interest.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

735 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