ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Only home page shows after using .htaccess and using MSM...

July 06, 2011 7:24pm

Subscribe [3]
  • #1 / Jul 06, 2011 7:24pm

    polivares

    4 posts

    Hi there..

    I can get my homepage to show up at http://www.ancientweb.org

    BUT when I go to subpages I get an error..and my .htaccess has this only

    <IfModule mod_rewrite.c> 
    RewriteEngine On 
    # Removes index.php
    RewriteCond $1 !\.(gif|jpe?g|png)$ [NC] 
    RewriteCond %{REQUEST_FILENAME} !-f 
    RewriteCond %{REQUEST_FILENAME} !-d 
    RewriteRule ^(.*)$ /ancientweb/index.php?/$1 [L] 
    # If 404s, "No Input File" or every URL returns the same thing 
    # make it /index.php?/$1 above (add the question mark) 
    </IfModule>

    I can still access my subpages thru the old url like so…http://gigamyte.com/ancientweb/explore/

    what am I doing wrong? I had enginehosting point my domain to a subfolder alias of my original url as I am using MSM and have two websites hosted from this instance of EE

    Please help!!!

  • #2 / Jul 07, 2011 7:47am

    polivares

    4 posts

    Anyone?

  • #3 / Jul 07, 2011 8:00am

    John Henry Donovan

    12339 posts

    Everythign seems to be working for me. Can you confirm? Nice site by the way

  • #4 / Jul 07, 2011 8:16am

    polivares

    4 posts

    Hi, thank you for the quick reply.. it was one of those things where I literally retyped the code in .htaccess and it worked just fine.. I bet there was a period or something there.. thanks for the kind words!

    I have another question for you.. I own other domains that I want to point to subpages of my site, so for example I have a domain called ancientchile.com, that I wish to point to a page like this http://ancientweb.org/explore/country/Chile

    Is this the proper code to sue in the .htaccess file?

    RewriteCond %{HTTP_HOST} ^ancientchile\.com [NC]
    RewriteCond %{HTTP_HOST} ^www\.ancientchile\.com [NC]
    RewriteRule ^(.*)$ <a href="http://ancientweb.org/explore/country/Chile/$1">http://ancientweb.org/explore/country/Chile/$1</a> [R=301]

    I LOVE ee by the way, first site I have built suing it, but I am surely a novice..

  • #5 / Jul 08, 2011 7:58am

    Sue Crocker

    26054 posts

    Hi, polivares.

    We can offer official support for removing index.php, but other .htaccess issues are better handled by the community. Moving to the Community Help forum.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases