Jump to content

rondog

Members
  • Posts

    753
  • Joined

  • Last visited

    Never

Everything posted by rondog

  1. got it..since my htaccess was in the sub directory, I didn't need the first /sub RewriteRule ^([^/\.]+)/?$ index.php?page=$1 [L] here is the full thread. It shows using htaccess in webroot as well as using htaccess in sub directory. The example above is for in the directory http://stackoverflow.com/questions/6668423/mod-rewrite-for-sub-directory
  2. I also tried: RewriteRule ^/sub/([^/\.]+)/?$ /sub/index.php?page=$1 [L] and same result
  3. I have a domain and a sub folder, called "sub"..inside "sub" is index.php which has this: <?php $page = $_GET['page']; switch ($page) { case "main": echo "main"; break; case "task_orders": echo "task_orders"; break; case "team_members": echo "team_members"; break; case "team_experience": echo "team_experience"; break; case "quality_assurance": echo "quality_assurance"; break; case "geographical_support": echo "geographical_support"; break; case "contact": echo "contact"; break; default: echo "main"; } my htaccess in "sub" is: Options +FollowSymLinks RewriteEngine On RewriteRule ^sub/([^/\.]+)/?$ index.php?page=$1 [L] when I click a link which looks like: <li><a href="/sub/main" title="Main" class="current">Main</a></li> <li><a href="/sub/task_orders" title="Task Orders">Task Orders</a></li> <li><a href="/sub/team_members" title="Team Members">Team Members</a></li> <li><a href="/sub/team_experience" title="Team Experience">Team Experience</a></li> <li><a href="/sub/quality_assurance" title="Quality Assurance Program">Quality Assurance</a></li> <li><a href="/sub/geographical_support" title="Geographical Support">Geographical Support</a></li> <li><a href="/sub/contact" title="Points of Contact">Points of Contact</a></li> I get a page not found rather than echoing out what page I am on
  4. you my friend are a genius...that totally worked!
  5. So a PHP script is creating the folder through a form and is setting the owner/group to "apache/apache" whereas the script is "mc1967/psacIn" Can I do anything in the PHP to set its owner/group?
  6. I'm installing an app on a clients server and when I try and upload through the form, I get this error: <b>Warning</b>: move_uploaded_file() [<a href='0function.move-uploaded-file0'>function.move-uploaded-file0</a>]: SAFE MODE Restriction in effect. The script whose uid is 10053 is not allowed to access /var/www/vhosts/xxxxxxx.ca/httpdocs/clients/project_data/test owned by uid 48 in <b>/var/www/vhosts/xxxxxxx.ca/httpdocs/clients/upload.php</b> on line <b>50</b><br /> I've installed this same app on other servers and haven't ran into this problem before. The client is on a shared host so I do not have php.ini access. Any ideas? thanks
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.