.htaccess

Status
Not open for further replies.

matt_gilks79

New Member
Messages
2
Reaction score
0
Points
0
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
 

Anna

I am just me
Staff member
Messages
11,783
Reaction score
595
Points
113
Try adding "RewriteBase /" That usually does the trick.
 
Status
Not open for further replies.
Top