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.

Moved EE to new server Rewrites no longer working.

January 01, 2014 6:28am

Subscribe [1]
  • #1 / Jan 01, 2014 6:28am

    stefaandk

    5 posts

    Basically I moved my existing vb 1.x site from a basic native lamp server to a new system running cpanel.
    The intention is to upgrade the whole site to the latest EE/vb combo going forward but I need to get things working on the existing server still.

    I can’t get my URL rewrites working properly any longer, mod rewrite is enabled and rewrites are working on other parts of my site like vbulletin, also rewrite to www works, if I take out the rules like the javascript ones the site breaks all together.

    but in EE any of the pages like http://www.theoldergamers.com/xyz no longer work.

    My .htaccess looks like this:

    RewriteEngine On
    
    #RewriteRule ^css/(.*\.css) /combine/combine.php?type=css&files;=$1
    
    RewriteCond %{HTTP_HOST} !^www\.theoldergamers\.com
    RewriteRule (.*) <a href="http://www.theoldergamers.com/$1">http://www.theoldergamers.com/$1</a> [L,R=301]
    
    RewriteCond $1 !^(images|admincp|openx|toginmedia|cp|themes|combine-cache|gtparser|files|forum|phpThumb|js|css|favicon\.ico|robots\.txt|index\.php|combine\.php|inmemorium) [NC]
    RewriteRule ^(.*)$ index.php/$1 [L]
    
    # Redirect to protect against EE registrations only
    Redirect /member/register <a href="http://www.theoldergamers.com/">http://www.theoldergamers.com/</a>
    Redirect /member/ <a href="http://www.theoldergamers.com/">http://www.theoldergamers.com/</a>
    
    RewriteRule ^js/(.*\.js) /combine.php?type=javascript&files;=$1
    
    # compress text, html, javascript, css, xml:
    AddOutputFilterByType DEFLATE text/plain
    AddOutputFilterByType DEFLATE text/html
    AddOutputFilterByType DEFLATE text/xml
    AddOutputFilterByType DEFLATE text/css
    #AddOutputFilterByType DEFLATE text/php
    AddOutputFilterByType DEFLATE application/xml
    AddOutputFilterByType DEFLATE application/xhtml+xml
    AddOutputFilterByType DEFLATE application/rss+xml
    AddOutputFilterByType DEFLATE application/javascript
    AddOutputFilterByType DEFLATE application/x-javascript

    I’m at a loss here why my basic domain.com/xyz pages are no longer working.

    Any help would be appreciated.

  • #2 / Jan 01, 2014 4:11pm

    stefaandk

    5 posts

    Just for some closure I fixed the rewrite problem by changing this:

    RewriteRule ^(.*)$ index.php/$1 [L]

    to

    RewriteRule ^(.*)$ index.php?/$1 [L]

    Ater finding this article as the difference here is the server running in suphp vs module mode on my original install

    http://ellislab.com/forums/viewthread/120482/

    Still have an issue with my image rotator but I’ll dig into that next.

     

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

ExpressionEngine News!

#eecms, #events, #releases