1 of 2
1
Installation Issue on AN Hosting
Posted: 21 November 2007 08:43 AM   [ Ignore ]  
Grad Student
Rank
Total Posts:  67
Joined  10-11-2007

I’ve had EE running just fine using WebHost4Life, but I cannot get EE to work the same on AN Hosting. My problem is that I cannot use the .Htaccess 2-liner from the wiki:

RewriteEngine on
RewriteCond $1 !^(galleries|images|eecore|themes|favicon\.ico|robots\.txt|index\.php) [NC]
RewriteRule ^(.*)$ /index.php/$1 [L]

It comes back: No input file specified. Which you have a page on that too, but it’s talking about subdomains and my install is in the root of public_html.

Yes, I’ve followed the instructions on the page with details on migrating to a different server. :)

Any ideas? AN Hosting is trying to help, but they’re saying, “server configuration doesn’t allow to use this method of redirection.”, which could be true, but i don’t think he understands what i’m really trying to do.

Profile
 
 
Posted: 21 November 2007 08:53 AM   [ Ignore ]   [ # 1 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  24513
Joined  05-20-2002

I’m going to shift this one over to ‘How to’ as the full removal of index.php isn’t officially supported.  That’s because some server setups don’t allow it- which might be the case here.

But let’s see- if you try to access by manually putting the index.php in your url, does it still work?  It’s just the htaccess failing?

 Signature 

AKA rob1

Help Request TipsPro Network

Profile
 
 
Posted: 21 November 2007 09:03 AM   [ Ignore ]   [ # 2 ]  
Grad Student
Rank
Total Posts:  67
Joined  10-11-2007

actually if i type in a full “url” like, http://ebohling.com/index.php/wine/list, (or any other valid url) it will still only display the homepage (with rewrite engine off in .htaccess). so i’m not sure what is going on.

Profile
 
 
Posted: 21 November 2007 10:32 AM   [ Ignore ]   [ # 3 ]  
Grad Student
Rank
Total Posts:  67
Joined  10-11-2007

additional info: PHP is running in a CGI process. I have completed the extra steps as outlined on wiki page (under troubleshooting). still no worky worky though.

with rewrite engine off, this url should display an archive (thumbnails) of photo of the day: http://ebohling.com/index.php/bryce/archive/. but instead it goes to the homepage.

ideas?

Profile
 
 
Posted: 21 November 2007 10:52 AM   [ Ignore ]   [ # 4 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  24513
Joined  05-20-2002

The new server is no fun- it sounds like you’ll need to force query strings and most likely change the $qtype in index.php- see this kblog entry- that look like what’s up?  And- remove the htaccess for now.  Let’s get this working stock first.

 Signature 

AKA rob1

Help Request TipsPro Network

Profile
 
 
Posted: 21 November 2007 04:54 PM   [ Ignore ]   [ # 5 ]  
Grad Student
Rank
Total Posts:  67
Joined  10-11-2007

ok, now we got stock working after following not only the link you provided but also this one: http://expressionengine.com/wiki/Workaround_for_Forced_Query_Strings/. which i guess overrides the link you sent since the ouput is turned off and qtype is switched back to 0.

so stock works, .htaccess still no worky. getting there…now what? smile

Profile
 
 
Posted: 26 November 2007 10:43 AM   [ Ignore ]   [ # 6 ]  
Grad Student
Rank
Total Posts:  67
Joined  10-11-2007

i’m sure you have a lot of catching up to do robin, but if you get a chance i’d love to hear any further thoughts you had on this.

current status: web site works fine if i add “index.php” to the url, but not if i remove it.

thx,
—bb—

Profile
 
 
Posted: 26 November 2007 11:03 AM   [ Ignore ]   [ # 7 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  24513
Joined  05-20-2002

Heh- this one is just hard because the default approach has always worked for me.  So- I’ve never had to dink with it and have no real way to test. 

But- to be clear- it’s working now with $qtype set to the default 0 and force query string turned on?  Correct?

 Signature 

AKA rob1

Help Request TipsPro Network

Profile
 
 
Posted: 26 November 2007 11:32 AM   [ Ignore ]   [ # 8 ]  
Grad Student
Rank
Total Posts:  67
Joined  10-11-2007

totally understand…i am pushing hard on the AN Hosting support folks to resolve this since they have the best knowledge of their server configuration. yes, the $qtype is set to ZERO and the $path_info is now set to (in index.php):

$path_info = (isset($_SERVER[‘ORIG_PATH_INFO’])) ? $_SERVER[‘ORIG_PATH_INFO’] : @getenv(‘ORIG_PATH_INFO’);

anytime i do anything with .htaccess though (turn on rewrite) i start getting the “no input file specified” error.

Profile
 
 
Posted: 27 November 2007 09:22 AM   [ Ignore ]   [ # 9 ]  
Grad Student
Rank
Total Posts:  67
Joined  10-11-2007

while i wait for AN Hosting support to answer, i thought i would temporarily go back to using the index.php in the url, but it looks like that’s going to require a lot of template re-work…even after i changed the homepage (in admin section) from being blank to being index.php. am i missing a step?

currently my links look something like this:

href=”{url_title_path=”{my_template_group}/entry”}”

or

href=”/bryce/archive/”

what should i be using to be able to quickly and easily (hopefully via just a change to the homepage entry in the admin section) change the links from using or not using index.php?

Profile
 
 
Posted: 27 November 2007 09:36 AM   [ Ignore ]   [ # 10 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  24513
Joined  05-20-2002

Any {path=”} will pick it up, as should {url_title_path}- they use the cp settings.  I tend to stay away from relative urls and use path instead, but I don’t see why they wouldn’t work if they already were.  About the only place I’d expect trouble would be hard coded full urls in the templates/entries and variables that use the settings in ‘Admin- Weblog Admin- Weblog Management’- path settings.  That url_title_path should be ok for sure- maybe try clearing all caches?

 Signature 

AKA rob1

Help Request TipsPro Network

Profile
 
 
Posted: 27 November 2007 10:40 AM   [ Ignore ]   [ # 11 ]  
Grad Student
Rank
Total Posts:  67
Joined  10-11-2007

that’s the ticket: {path=}. well, i absolutely cannot stand the index.php in a URL as it provides absolutely no use to the viewer, but until i someone from AN Hosting tells me how to use .htaccess on their servers i guess i have no choice. thanks for all your help robin!

Profile
 
 
Posted: 30 November 2007 01:09 PM   [ Ignore ]   [ # 12 ]  
Grad Student
Rank
Total Posts:  67
Joined  10-11-2007

according to AN Hosting support, I need rewrite rules (.htaccess) for PHP on CGI servers.

The redirect rules you tried to use won’t work on PHP as CGI servers. It means
you need to contact your software developers (EE support) to have them assist
you with the updated rules that would allow you to replace URLs. Also I
mentioned the pluggins “search/replace” in case they were written for
CGI servers too.

any suggestions how to change the rewrite rules in .htaccess for PHP/CGI servers?

Profile
 
 
Posted: 30 November 2007 03:21 PM   [ Ignore ]   [ # 13 ]  
Lab Assistant
RankRank
Total Posts:  131
Joined  10-28-2007

Not sure this is the issue or not, but maybe try adding a ? after index.php in the .htaccess file.  This solved my issues with my host:

RewriteEngine on
RewriteCond
$1 !^(galleries|images|eecore|themes|favicon\.ico|robots\.txt|index\.php) [NC]
RewriteRule
^(.*)$ /index.php?/$1 [L]
 Signature 

Kyle Slattery Web Design & Development - Usable, beautiful, easy-to-maintain design

Profile
 
 
Posted: 01 December 2007 10:19 AM   [ Ignore ]   [ # 14 ]  
Grad Student
Rank
Total Posts:  67
Joined  10-11-2007

shoot, i was really hoping that would work, but it didn’t. drats! anyone know rewrite rules for cgi servers (see hosting support note below)?

The redirect rules you tried to use won’t work on PHP as CGI servers. It means you need to contact your EE support to have them assist you with the updated rules that would allow you to replace URLs.

Profile
 
 
Posted: 03 December 2007 01:50 PM   [ Ignore ]   [ # 15 ]  
Grad Student
Rank
Total Posts:  67
Joined  10-11-2007

i’ve spent hours trying to figure out how to write the rewrite rules when PHP is run as CGI, but cannot seem to find anything. anyone? anyone?

Profile
 
 
Posted: 05 December 2007 10:17 AM   [ Ignore ]   [ # 16 ]  
Grad Student
Rank
Total Posts:  67
Joined  10-11-2007

no one? so what’s my next step…quit using hosting service or quit using EE? obviously i don’t want to do either, but i absolutely cannot stand having “index.php” in a URL…serves zero purpose to anyone (except EE).

Profile
 
 
Posted: 05 December 2007 08:31 PM   [ Ignore ]   [ # 17 ]  
Lab Assistant
RankRank
Total Posts:  131
Joined  10-28-2007

Try this:

RewriteEngine On
RewriteCond
%{REQUEST_FILENAME} !-f
RewriteCond
%{REQUEST_FILENAME} !-d
RewriteRule
^(.*)$ /index.php?/$1 [L]

It’s what I’m using on my host, and I’m pretty sure they run PHP as CGI

 Signature 

Kyle Slattery Web Design & Development - Usable, beautiful, easy-to-maintain design

Profile
 
 
Posted: 03 January 2008 04:14 PM   [ Ignore ]   [ # 18 ]  
Grad Student
Rank
Total Posts:  67
Joined  10-11-2007

No Kyle that did not work unfortunately. It does look like your ISP has both PHP as CGI and web module, so maybe you are not on a PHP/CGI server…or you’re just luck…and/or I’m just unlucky. wink

Profile
 
 
   
1 of 2
1
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 1149, on July 16, 2007 09:33 AM
Total Registered Members: 77533 Total Logged-in Users: 47
Total Topics: 101540 Total Anonymous Users: 25
Total Replies: 544313 Total Guests: 301
Total Posts: 645853    
Members ( View Memberlist )