-
AuthorPosts
-
ceeyee Friend
ceeyee
- Join date:
- July 2011
- Posts:
- 231
- Downloads:
- 3
- Uploads:
- 15
- Thanks:
- 112
- Thanked:
- 1 times in 1 posts
July 27, 2013 at 6:28 am #189277Hi,
I am using the sample data but I found that for each page, it inserted an “index.php” as a folder name in the URL.
Please see the screen shot.Is there a way to get ride of this file name in the URL? For example in the screen shot, make it “localhost/iuworking/life-and-style/fashion-a-beauty/237-joomla25-template-magazine-news/”?
Thanks.
pavit Moderatorpavit
- Join date:
- September 2007
- Posts:
- 15749
- Downloads:
- 199
- Uploads:
- 2274
- Thanks:
- 417
- Thanked:
- 4028 times in 3778 posts
ceeyee Friendceeyee
- Join date:
- July 2011
- Posts:
- 231
- Downloads:
- 3
- Uploads:
- 15
- Thanks:
- 112
- Thanked:
- 1 times in 1 posts
November 16, 2013 at 5:48 am #512419This post in the link is very complicated… There are so many options discussed.
Sorry I am very new to Joomla.
Could you please point out who’s idea/which reply is the one that is applicable to Teline III V2?
Thank you very much.pavit Moderatorpavit
- Join date:
- September 2007
- Posts:
- 15749
- Downloads:
- 199
- Uploads:
- 2274
- Thanks:
- 417
- Thanked:
- 4028 times in 3778 posts
November 16, 2013 at 6:35 am #512421Hi
This is not a template configuration, but a Joomla core feature
From your backend you need to have Search Engine Friendly URLs set to yes and Use URL rewriting to yes
Then you need to go in your Joomla installation folder and rename the file htaccess.txt to .htaccess after you added these lines to it
## Can be commented out if causes errors, see notes above.
Options +FollowSymLinks#
# mod_rewrite in useRewriteEngine On
#Remove index.php from homepage
RewriteCond %{THE_REQUEST} ^{3,9} /index.(php|html) [NC]
RewriteRule ^index.php$ http://www.yourdomain.com/ [R=301,L]Change http://www.yourdomain.com with your domain name
-
1 user says Thank You to pavit for this useful post
ceeyee Friendceeyee
- Join date:
- July 2011
- Posts:
- 231
- Downloads:
- 3
- Uploads:
- 15
- Thanks:
- 112
- Thanked:
- 1 times in 1 posts
December 6, 2013 at 8:02 pm #514604This method does have removed the index.php, but all the dynamic effects of the templates are gone, such as the sub menus, JA News Featured Module, JA Tab, and others.
Could you please tell me how to fix?
Thanks.<em>@pavit 398145 wrote:</em><blockquote>Hi
This is not a template configuration, but a Joomla core feature
From your backend you need to have Search Engine Friendly URLs set to yes and Use URL rewriting to yes
Then you need to go in your Joomla installation folder and rename the file htaccess.txt to .htaccess after you added these lines to it
## Can be commented out if causes errors, see notes above.
Options +FollowSymLinks#
# mod_rewrite in useRewriteEngine On
#Remove index.php from homepage
RewriteCond %{THE_REQUEST} ^{3,9} /index.(php|html) [NC]
RewriteRule ^index.php$ http://www.yourdomain.com/ [R=301,L]Change http://www.yourdomain.com with your domain name</blockquote>
pavit Moderatorpavit
- Join date:
- September 2007
- Posts:
- 15749
- Downloads:
- 199
- Uploads:
- 2274
- Thanks:
- 417
- Thanked:
- 4028 times in 3778 posts
December 6, 2013 at 8:13 pm #514606Hi
Could you please send me via Private Message a super user account to your website ?
ceeyee Friendceeyee
- Join date:
- July 2011
- Posts:
- 231
- Downloads:
- 3
- Uploads:
- 15
- Thanks:
- 112
- Thanked:
- 1 times in 1 posts
December 7, 2013 at 12:40 am #514624Info Sent. Thanks.
<em>@pavit 400908 wrote:</em><blockquote>Hi
Could you please send me via Private Message a super user account to your website ?</blockquote>
pavit Moderatorpavit
- Join date:
- September 2007
- Posts:
- 15749
- Downloads:
- 199
- Uploads:
- 2274
- Thanks:
- 417
- Thanked:
- 4028 times in 3778 posts
December 7, 2013 at 9:01 am #514639Hi
I modified your .htaccess adding the correct rule to remove the index.php from your url ( before was not configured in the right way )
It works fine now by my side website is working as should ( submenu and modules included ) please check it and confirm
Thank you
1 user says Thank You to pavit for this useful post
pavit Moderatorpavit
- Join date:
- September 2007
- Posts:
- 15749
- Downloads:
- 199
- Uploads:
- 2274
- Thanks:
- 417
- Thanked:
- 4028 times in 3778 posts
December 7, 2013 at 7:51 pm #514673<blockquote>Hi Pavit,
Thanks a lot for your help. May I know where you have changed, so that I can implement the change for other site by my self?
Thanks again.</blockquote>
Hi
I added in your .htaccess file in the main root this block of code
## Mod_rewrite in use.
RewriteEngine On
RewriteCond %{THE_REQUEST} ^{3,9} /index.(php|html) [NC]
#RewriteRule ^index.php$ http://yourwebsite.com/ [R=301,L]clearly i changed yourwebsite.com with your site name
Best regards
1 user says Thank You to pavit for this useful post
ceeyee Friendceeyee
- Join date:
- July 2011
- Posts:
- 231
- Downloads:
- 3
- Uploads:
- 15
- Thanks:
- 112
- Thanked:
- 1 times in 1 posts
December 8, 2013 at 6:35 am #514686Why do we need to change the yourwebsite.com, when that line is commented out?
Thanks.
By the way, do I still need to do “From your backend you need to have Search Engine Friendly URLs set to yes and Use URL rewriting to yes” in this updated method?<em>@pavit 401005 wrote:</em><blockquote>Hi
I added in your .htaccess file in the main root this block of code
## Mod_rewrite in use.
RewriteEngine On
RewriteCond %{THE_REQUEST} ^{3,9} /index.(php|html) [NC]
#RewriteRule ^index.php$ http://yourwebsite.com/ [R=301,L]clearly i changed yourwebsite.com with your site name
Best regards</blockquote>
pavit Moderatorpavit
- Join date:
- September 2007
- Posts:
- 15749
- Downloads:
- 199
- Uploads:
- 2274
- Thanks:
- 417
- Thanked:
- 4028 times in 3778 posts
December 8, 2013 at 9:06 am #514691Hi
<blockquote>Why do we need to change the yourwebsite.com, when that line is commented out?
</blockquote>This is my error when copying the code your .htacces is not commented
<blockquote>By the way, do I still need to do “From your backend you need to have Search Engine Friendly URLs set to yes and Use URL rewriting to yes” in this updated method?</blockquote>
Yes you need to have settings in that way
ceeyee Friendceeyee
- Join date:
- July 2011
- Posts:
- 231
- Downloads:
- 3
- Uploads:
- 15
- Thanks:
- 112
- Thanked:
- 1 times in 1 posts
December 8, 2013 at 6:51 pm #514727Is the only different between the two versions is that the second one doesn’t have “RewriteEngine On”?
I also notice that in the second method the “www.” is not included in “yourdomain.com”. Is this also important to not include the “www.”?
Thank you very much.
ceeyee Friendceeyee
- Join date:
- July 2011
- Posts:
- 231
- Downloads:
- 3
- Uploads:
- 15
- Thanks:
- 112
- Thanked:
- 1 times in 1 posts
January 10, 2014 at 1:58 am #517965Sorry I meant Options +FollowSymLinks here.
<em>@ceeyee 401089 wrote:</em><blockquote>Is the only different between the two versions is that the second one doesn’t have “RewriteEngine On”?I also notice that in the second method the “www.” is not included in “yourdomain.com”. Is this also important to not include the “www.”?
Thank you very much.</blockquote>
ceeyee Friendceeyee
- Join date:
- July 2011
- Posts:
- 231
- Downloads:
- 3
- Uploads:
- 15
- Thanks:
- 112
- Thanked:
- 1 times in 1 posts
January 10, 2014 at 6:51 pm #518094<em>@pavit 401005 wrote:</em><blockquote>Hi
I added in your .htaccess file in the main root this block of code
## Mod_rewrite in use.
RewriteEngine On
RewriteCond %{THE_REQUEST} ^{3,9} /index.(php|html) [NC]
#RewriteRule ^index.php$ http://yourwebsite.com/ [R=301,L]clearly i changed yourwebsite.com with your site name
Best regards</blockquote>
Hi Pavit,
Is there a way to make this code compatible with both localhost and the web server?
If I change the http://yourwebsite.com to my domain, then it won’t be effective on my localhost.Is there a generic thing I can put in this “http://yourwebsite.com” so that it works both on my local WAMP and hostgator without changing code back and forth?
Thanks.
Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
January 13, 2014 at 4:01 am #518196I’m wondering how it will be effective on your localhost when you change in host server :confused:
AuthorPostsThis topic contains 17 replies, has 3 voices, and was last updated by Saguaros 10 years, 10 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum
Jump to forum