Closed Thread
Results 1 to 3 of 3

Thread: .htaccess

  1. #1
    matt_gilks79 is offline x10Hosting Member matt_gilks79 is an unknown quantity at this point
    Join Date
    Jan 2011
    Posts
    2

    .htaccess

    Hey,

    I was wondering if your servers support htaccess as my website works fine with MAMP, but when it is uploaded to your servers, the url rewrites no longer work.

    I was wondering if you could advise me of this?

    htaccess contents: "RewriteEngine on
    RewriteCond $1 !^(index\.php|_content|_system|_xml|robots\.txt)
    RewriteRule ^(.*)$ index.php/$1 [L]

    IndexIgnore */*

    <Files .htaccess>
    order allow,deny
    deny from all
    </Files>"

    functions.php which makes the rewrite would be set up as: "<?php

    // ************************************
    // SETUP
    // this setup the nice URI for the website....
    $baseURL = $_SERVER['SERVER_NAME'];
    if( $baseURL == 'localhost' )
    {
    $baseURL = 'http://activateudid.com/';
    $resetURL= '/';
    $reqPage = str_replace($resetURL, "",$_SERVER['REQUEST_URI'] );
    $reqPage = split("/", $reqPage);
    $reqPage = $reqPage[0];
    } else {
    $reqPage = split("/", $_SERVER['REQUEST_URI']);
    $reqPage = $reqPage[1];
    }
    if($reqPage == false || $reqPage == 'index.php' ) {$reqPage = "home";}"

    Thanks

    Matt Gilks

  2. #2
    Anna's Avatar
    Anna is offline I am just me Anna is a name known to allAnna is a name known to all
    Join Date
    Aug 2007
    Location
    Sweden
    Posts
    6,569

    Re: .htaccess

    Try adding "RewriteBase /" That usually does the trick.
    Do you have trouble reaching your site?
    Check here first: News and Announcements


    Don't forget that x10hosting has an irc server as well. Come and join the fun
    server: irc.x10hosting.com, main channel: #x10hosting
    There's a lot helpful users there if need help building your site

  3. #3
    matt_gilks79 is offline x10Hosting Member matt_gilks79 is an unknown quantity at this point
    Join Date
    Jan 2011
    Posts
    2

    Thumbs up Re: .htaccess

    Quote Originally Posted by Anna View Post
    Try adding "RewriteBase /" That usually does the trick.
    Thank you so much! Did the trick perfectly

Closed Thread

Similar Threads

  1. .htaccess help
    By websitedude in forum Programming Help
    Replies: 24
    Last Post: 03-17-2010, 02:13 PM
  2. Where do I put .htaccess
    By mygaccount1 in forum Free Hosting
    Replies: 1
    Last Post: 02-17-2010, 03:01 PM
  3. .htaccess + php.ini
    By extolcpusername in forum Free Hosting
    Replies: 1
    Last Post: 01-15-2010, 08:51 AM
  4. HTACCESS Help
    By takuhii in forum Free Hosting
    Replies: 2
    Last Post: 09-30-2008, 03:35 PM
  5. htaccess.txt -> .htaccess
    By MaestroFX1 in forum Free Hosting
    Replies: 0
    Last Post: 04-22-2008, 04:45 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers