Moved to another host, URLs not working :(
Posted: 28 November 2006 07:00 AM   [ Ignore ]  
Grad Student
Rank
Total Posts:  92
Joined  07-09-2005

The Control Panel works, but for the weblogs and the forums all I get is a “Not found” message. From the EE User Guide:

If you are hosted on an Apache server it needs to be configured with AllowOverride=on for the URLs to work with the default settings. Most server are configured this way, but if yours is not then there are three options:
- Manually turn that feature on using a .htaccess file.

Could someone tell me:
- what should I write in the .htaccess file?
- where should I put the .htaccess file: in the root of the site?

Thank you!

Profile
 
 
Posted: 28 November 2006 07:55 AM   [ Ignore ]   [ # 1 ]  
Grad Student
Rank
Total Posts:  92
Joined  07-09-2005

Update: Host said AllowOverride is on, but the site still not working… :(

Profile
 
 
Posted: 28 November 2006 08:23 AM   [ Ignore ]   [ # 2 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  24513
Joined  05-20-2002

Do you have a link to the site in question?  Is it ALL pages- or does the index page come up?

Generally you can test for this issue by adding the query string and seeing if it solves the problem.  So if your link is mysite.com/index.php/site/index, try mysite.com/index.php?/site/index.

 Signature 

AKA rob1

Help Request TipsPro Network

Profile
 
 
Posted: 28 November 2006 08:41 AM   [ Ignore ]   [ # 3 ]  
Grad Student
Rank
Total Posts:  92
Joined  07-09-2005

The site is under construction, so it looks like this: http://www.macuser.ro
You’ll see there a link to the forums which is not working: http://www.macuser.ro/index.php/forums
It works if I use a query string:  http://www.macuser.ro/index.php?forums
What can I do to make it work again without using query strings? Are there any other PHP/Apache requirements for the server?

Profile
 
 
Posted: 28 November 2006 09:01 AM   [ Ignore ]   [ # 4 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  24513
Joined  05-20-2002

You could try putting:
AcceptPathInfo On
In your htaccess - same level as your index.php file.  Not sure it will work, though.

 Signature 

AKA rob1

Help Request TipsPro Network

Profile
 
 
Posted: 28 November 2006 10:32 AM   [ Ignore ]   [ # 5 ]  
Grad Student
Rank
Total Posts:  92
Joined  07-09-2005

Robin, you’re a genius! Thanks a lot! It works.

Profile
 
 
Posted: 28 November 2006 10:46 AM   [ Ignore ]   [ # 6 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  24513
Joined  05-20-2002

Whee!  Shot in the dark hits!  Glad you’re squared away.

 Signature 

AKA rob1

Help Request TipsPro Network

Profile
 
 
Posted: 07 February 2008 04:04 PM   [ Ignore ]   [ # 7 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  122
Joined  03-24-2007

Just FYI, as I was really concerned about this after moving a client’s site to a GoDaddy server, you can get around this by using mod_rewrite to *include* the ? in the rewrite URL:

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

.  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .
Mark J. Reeves
Principal, Technology
| @circa1977

Profile
 
 
   
 
 
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: 77529 Total Logged-in Users: 54
Total Topics: 101535 Total Anonymous Users: 31
Total Replies: 544308 Total Guests: 256
Total Posts: 645843    
Members ( View Memberlist )