Part of the EllisLab Network
   
 
help: RewriteRule ^(.*)$ index.php/$1 [L]
Posted: 29 January 2007 04:50 PM   [ Ignore ]  
Lab Assistant
RankRank
Total Posts:  111
Joined  09-21-2006

My support told me:
The rewrites in your htaccess seem to be incompatible with mod_userdir, they should work normally when accessed with the domain name.

Please help me.

Profile
 
 
Posted: 29 January 2007 04:59 PM   [ Ignore ]   [ # 1 ]  
Lab Assistant
RankRank
Total Posts:  111
Joined  09-21-2006

Thay said:

What it looks like in the logs is that it is rewriting the path to what would expand to

[the default vhost docroot][your full docroot][script]

i.e. - [/usr/local/apache/htdocs/][home/yourusername/public_html/][$script]

where it should be expanding to

[your full docroot][script]

Profile
 
 
Posted: 29 January 2007 05:20 PM   [ Ignore ]   [ # 2 ]  
Lab Assistant
RankRank
Total Posts:  111
Joined  09-21-2006

I found that with this code:

<IfModule mod_rewrite.c>
    
RewriteEngine On
    RewriteCond
%{REQUEST_FILENAME} !-d
    RewriteCond
%{REQUEST_FILENAME} !-f
    RewriteRule
^(.*)$ index.php/$1 [QSA,L]
</IfModule>

It’s working but only for home page.
Any idea?

Profile
 
 
Posted: 29 January 2007 11:06 PM   [ Ignore ]   [ # 3 ]  
Lab Assistant
RankRank
Total Posts:  102
Joined  04-19-2006

I use this for my .htaccess file. Notice the Options +FollowSymLinks. I hope it helps.

# Turn on the Rewrite Engine
    
Options +FollowSymLinks
    RewriteEngine On
    RewriteCond
%{HTTP_HOST} ^domain.com [NC]
    RewriteRule
^(.*)$ http://www.domain.com/$1 [R=301,L]
   
    # If the file or directory exists, show it
    
RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond
%{REQUEST_FILENAME} -d
   
    RewriteRule
^(.+) - [PT,L]
    
    
# Blank queries get sent to the index
    
RewriteRule ^$ index.php [L]
    
    
# All other queries get sent to the index as index.php/whatever
    
RewriteRule ^(.*)$ index.php/$1 [L]

 Signature 

Palm Beach Printing

Profile
 
 
Posted: 30 January 2007 01:40 AM   [ Ignore ]   [ # 4 ]  
Lab Assistant
RankRank
Total Posts:  111
Joined  09-21-2006

didn’t help :(

Profile
 
 
   
 
 
‹‹ Multiple CCs not working      uh oh... ››
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 719, on June 06, 2008 10:16 AM
Total Registered Members: 66430 Total Logged-in Users: 30
Total Topics: 84793 Total Anonymous Users: 5
Total Replies: 455043 Total Guests: 203
Total Posts: 539836    
Members ( View Memberlist )
Newest Members:  Dylan1978X_franbaguasllogocsaturkeyPeter BryanttherendStudioGeorgiaJZeerfedeghe