Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS .htacess problem….. I think

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #39501
    sherbert
    Member

    Hi everyone,
    I´m a relatively newbie to .htaccess and I am having a strange problem with my site. The site is in folder in the root of my server along with other websites which are working just fine. They are all Joomla sites as this is all I now work with. Each domain has it´s own .htaccess file as does the root of the server.
    My issue is on the following domain http://www.compararelmercado.com as soon as any link is selected, the URL changes to http://www.compararelmercado.com/compararelmercado/—PAGE NAME—.
    So it basically inserts the site name into my URL.
    I have tried many things with my limited knowledge of .htaccess and am now reaching out to the community for help please?

    #108450
    sherbert
    Member

    DirectoryIndex index.html.var index.htm index.html index.shtml index.xhtml index.wml index.perl index.pl index.plx index.ppl index.cgi index.jsp index.js index.jp index.php4 index.php3 index.php index.phtml default.htm default.html home.htm index.php5 Default.html Default.htm home.html
    RewriteEngine on

    # Change yourdomain.com to be your primary domain.

    RewriteCond %{HTTP_HOST} ^(www.)?compararelmercado.com$

    # Change ‘subfolder’ to be the folder you will use for your primary domain.

    RewriteCond %{REQUEST_URI} !^/compararelmercado/

    # Don’t change this line.

    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d

    # Change ‘subfolder’ to be the folder you will use for your primary domain.

    RewriteRule ^(.*)/?$ /compararelmercado/$1

    # Change yourdomain.com to be your primary domain again.
    # Change ‘subfolder’ to be the folder you will use for your primary domain
    # followed by / then the main file for your site, index.php, index.html, etc.

    RewriteCond %{HTTP_HOST} ^(www.)?compararelmercado.com$
    RewriteRule ^(/)?$ compararelmercado/ [L]

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘CSS’ is closed to new topics and replies.