I just remove the index.php using the htaccess followed the documentation
I’m usin the v2.9.3
I also set on Cp Home > Admin > Global Configuration
Name of your site’s index page = (empty) URL to the root directory of your site = http://www.mysite.com/
Now when i browse
http://www.mysite.com/news
Since i made a list then add read more link for every news..
what i see is http://www.mysite.com/mysite.com/news/article-content
as I check the link in page source it the links shows <a href=”mysite.com/news/article-content”> on the tag. How can I add http:// in all the links? this same happen on pagination as well as when i try to implement a simple search.
Please advise thanks
here is the script
{exp:channel:entries channel="news" paginate_base="news" limit="3"}
By {author}
{news_body}
<a href="http://{url_title_path=news}">Read more</a>
{paginate }
Page {current_page} of {total_pages} pages {pagination_links}
{/paginate}
{/exp:channel:entries}
Here is the .htaccess <IfModule mod_rewrite.c> RewriteEngine On RewriteBase /
# Removes index.php from ExpressionEngine URLs
RewriteCond %{THE_REQUEST} ^GET.*index\.php [NC]
RewriteCond %{REQUEST_URI} !/system/.* [NC]
RewriteRule (.*?)index\.php/*(.*) /$1$2 [R=301,NE,L]
# Directs all EE web requests through the site index file
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php/$1 [L]
</IfModule>
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.