test
Viewing 15 posts - 1 through 15 (of 17 total)
  • Author
    Posts
  • ceeyee Friend
    #189277

    Hi,

    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.


    1. IP
    pavit Moderator
    #500312

    Hi

    That’s a url rewrite setting please look at this POST on how to remove it

    ceeyee Friend
    #512419

    This 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 Moderator
    #512421

    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 use

    RewriteEngine 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. Screenshot_1
    ceeyee Friend
    #514604

    This 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 use

    RewriteEngine 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 Moderator
    #514606

    Hi

    Could you please send me via Private Message a super user account to your website ?

    ceeyee Friend
    #514624

    Info 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 Moderator
    #514639

    Hi

    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

    pavit Moderator
    #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

    ceeyee Friend
    #514686

    Why 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 Moderator
    #514691

    Hi

    <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 Friend
    #514727

    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.

    ceeyee Friend
    #517965

    Sorry 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 Friend
    #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 Moderator
    #518196

    I’m wondering how it will be effective on your localhost when you change in host server :confused:

Viewing 15 posts - 1 through 15 (of 17 total)

This topic contains 17 replies, has 3 voices, and was last updated by  Saguaros 10 years, 11 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum