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.

URL Simplification (Stopped Working)

February 21, 2013 5:42am

Subscribe [1]
  • #1 / Feb 21, 2013 5:42am

    Mantishead

    55 posts

    I was previously using the following rewrites to simplify URLs:

    #RewriteCond $0 !^(index\.php/)?rooms/details [NC]
    #RewriteRule ^(?:index\.php/)?rooms/(.+)$ /index.php/rooms/details/$1 [NC,L]
    
    #RewriteCond $0 !^(index\.php/)?specialoffer/details [NC]
    #RewriteRule ^(?:index\.php/)?specialoffer/(.+)$ /index.php/specialoffer/details/$1 [NC,L]

    These would allow this:
    http://www.mywebsite.com/rooms/details/room_three

    to work as this:
    http://www.mywebsite.com/rooms/room_three

    However, I have upgraded to the latest version of EE which I believe now has removal of index.php integrated into the core, where previously I was using this:

    RewriteCond $1 !^(images|docs|themes|sitemap\.xml|admin\.php|index\.php) [NC]
    RewriteRule ^(.*)$ /index.php/$1 [L]

    My URL simplification rewrites are no longer working however.  Any ideas would be gratefully received.  Thanks

     

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

ExpressionEngine News!

#eecms, #events, #releases