Results 1 to 2 of 2

Thread: URL rewrite problem

  1. #1
    Join Date
    Jun 2011
    Posts
    1

    Exclamation URL rewrite problem

    Hi, i'm using joomla 1.6.3 (with 2 languages el-en). Does anyone know how to
    remove index.php/el/ from the initial URL http://www.mydomain.com/index.php/el/
    (only from the initial page url - i don't mind if it appears in the rest of the pages).

    Activating the htaccess, as it is,hides only the index.php part and leaving it as www.mydomain.com/el Here is the code from htaccess:

    Options +FollowSymLinks
    RewriteEngine On

    RewriteCond %{QUERY_STRING} base64_encode[^(]([^)]) [OR]
    RewriteCond %{QUERY_STRING} (<|%3C)([^s]s)+cript.(>|%3E) [NC,OR]
    RewriteCond %{QUERY_STRING} GLOBALS(=|[|\%[0-9A-Z]{0,2}) [OR]
    RewriteCond %{QUERY_STRING} _REQUEST(=|[|\%[0-9A-Z]{0,2})
    RewriteRule .* index.php [F]

    #RewriteBase /

    RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
    RewriteCond %{REQUEST_URI} !^/index.php
    RewriteCond %{REQUEST_URI} /component/|(/[^.]*|.(php|html?|feed|pdf|vcf|raw))$ [NC]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule .* index.php [L]

    I'm having real problem with this issue.Any help would be appreciated

  2. #2
    Join Date
    Feb 2006
    Location
    Florida, USA
    Posts
    1,505

    Default

    I don't know much about Joomla so I can't guarantee this will work, but you can try adding this:
    Code:
    RewriteRule ^$ /el
    This only matches one pattern; an empty path.

    example.com will redirect to example.com/el without updating the address in the browser.

    If you want to match "index.php" as well you'll need to do something like this:
    Code:
    RewriteRule ^(index\.php)?$ /el
    Last edited by Basil; 06-29-2011 at 10:08 AM.
    If at first you don't succeed, try reading the instructions.
    semlar.com

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •