Replace Plugin Issues
Posted: 11 May 2007 03:32 PM   [ Ignore ]  
Lab Assistant
Avatar
RankRank
Total Posts:  183
Joined  03-21-2006

I have been using the Replace plugin to remove the index.php/ from my URL’s and I’ve run into some issues that are weird and it may be how I’m looking at it.

<br />
{exp:replace find="index.php/"}

     
<h2 class="title"><span><a href="{path=blog}">Additional Posts:</a></span></h2>        
     
     <
div class="cell_25">
     
          <
div class="cell_25_top"></div>
        
          <
ul class="categories">
          
{exp:weblog:entries weblog="default_site" limit="10" orderby="random"}
               
<li><a href="{url_title_path=blog}">{title}</a></li>
          
{/exp:weblog:entries}
          
</ul>
                
          <
div class="cell_25_bottom"></div>
                
{/exp:replace}</div>

It works for the categories but not the H2 title?  It also is not working for the Navigation or Footer?  Not sure why that is?

My Site

Everything but the Nav and Footer works on this page.

 Signature 

http://www.sethaldridge.com/

Profile
 
 
Posted: 13 May 2007 01:56 AM   [ Ignore ]   [ # 1 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  183
Joined  03-21-2006

I’ve been able to narrow down the issue to whenever I use {path=blog} or any single word…but it is not consistent.

Has anyone has this problem before?

 Signature 

http://www.sethaldridge.com/

Profile
 
 
Posted: 13 May 2007 10:51 AM   [ Ignore ]   [ # 2 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  838
Joined  04-24-2002

Have you checked out the Wiki entry on getting rid of index.php in your URLs? I’m using the “File and Directory Check” method, but there are a few ways to accomplish it.

 Signature 

chrisruzin.netTextMate EE BundleTextMate EE Developer Bundle • Pro Network member
“The greatest barrier to success is the fear of failure.” - Sven Goran Eriksson

Profile
 
 
Posted: 13 May 2007 11:05 AM   [ Ignore ]   [ # 3 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  183
Joined  03-21-2006

That’s the weird thing.  I’m using this:

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

But the index.php was still showing up.  I was able to have the site load without typing the index.php in the URL but it does not remove the index.php from the URL by itself.

 Signature 

http://www.sethaldridge.com/

Profile
 
 
Posted: 13 May 2007 11:27 AM   [ Ignore ]   [ # 4 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  838
Joined  04-24-2002

Did you rename your index.php file in the CP under Admin > System Preferences > General Configuration? Leave it blank.

 Signature 

chrisruzin.netTextMate EE BundleTextMate EE Developer Bundle • Pro Network member
“The greatest barrier to success is the fear of failure.” - Sven Goran Eriksson

Profile
 
 
Posted: 13 May 2007 12:50 PM   [ Ignore ]   [ # 5 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  183
Joined  03-21-2006

Nice.

I had not done that!  Thanks for the tip!

 Signature 

http://www.sethaldridge.com/

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: 64944 Total Logged-in Users: 66
Total Topics: 81920 Total Anonymous Users: 36
Total Replies: 440348 Total Guests: 287
Total Posts: 522268    
Members ( View Memberlist )