+ Reply to Thread
Results 1 to 3 of 3

Thread: .htaccess

  1. #1
    Barn Enthusiast Shem is on a distinguished road Shem's Avatar
    Join Date
    Mar 2008
    Posts
    305
    Rep Power
    4

    .htaccess

    Morning

    I have a prob with an old app created b y someone else, the app was created in the root directory (htdocs), and it cannot be moved as all the links point to the bloody root directory... after some searching it seems that it was set in the .htacess file.

    I know nothing of how these RewriteRule Rules work
    here's the current .htaccess file:
    Code:
    <IfModule mod_rewrite.c>
       RewriteEngine on
       RewriteRule    ^$ app/webroot/    [L]
       RewriteRule    (.*) app/webroot/$1 [L]
    </IfModule>
    
    it needs to point to the 'root_directory/new_folder'
    any ideas?

    Thanks
    Shem

  2. #2
    The Barnfather jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead's Avatar
    Join Date
    Mar 2008
    Location
    Reston, VA
    Posts
    4,547
    Blog Entries
    9
    Real Name
    Jason
    Rep Power
    22

    You should be able to add 'newfolder' to the end of the RewriteRule directory, (i.e. 'app/webroot/new_folder' [L] and (.*) app/webroot/new_folder/$1 [L]).
    jmurrayhead
    If you agree, give me rep.
    If you like it here...throw us a few bones to help support us.


  3. #3
    Barn Enthusiast Shem is on a distinguished road Shem's Avatar
    Join Date
    Mar 2008
    Posts
    305
    Rep Power
    4

    yeah I had tried that no luck

    anywho, I actually found out where the menu was, and it was hard coded!!

    thanks for the try

+ Reply to Thread

Bookmarks

Posting Permissions

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

SEO by vBSEO