SitePoint Sponsor

User Tag List

Results 1 to 4 of 4

Thread: htaccess rewite

  1. #1
    SitePoint Addict
    Join Date
    Oct 2008
    Posts
    204
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    htaccess rewite

    hi,

    i have a sub folder and i removed it now and i moved its files to the parent folder, now if i go the older folder i want it to redirect to its parent folder. i use following lines in .htaccess file

    Code:
    RewriteEngine on
    RewriteCond %{REQUEST_URI} ^(.*).html
    RewriteRule ^/folder1/folder2/(.*).html http://localhost/folder1/$1  [L]
    i add this i folde1's htaccess file

  2. #2
    SitePoint Guru Dashman's Avatar
    Join Date
    Jan 2006
    Location
    Manchester, UK
    Posts
    627
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi .. you should probably be asking this in the Apache forum:
    http://www.sitepoint.com/forums/forumdisplay.php?f=199

  3. #3
    SitePoint Zealot
    Join Date
    Mar 2008
    Location
    Norwich, Norfolk, England
    Posts
    118
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    So what is the prob divinequran?

  4. #4
    SitePoint Addict
    Join Date
    Oct 2008
    Posts
    204
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    the issue is it does not redirect me to the index.html file.


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
  •