Wallpaper Script Forum » Installation

Godaddy HTACCESS Fix!

(5 posts)
  • Started 2 years ago by GFXsupport
  • Latest reply from ehdwallpapers
  1. http://www.wallpaperfill.com

    Well I figured it out how to get the HTACESS to work on Godaddy. Here is the script if you are using GoDaddy Hosting:

    Options +FollowSymlinks
    RewriteEngine On

    RewriteBase /

    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_URI} !(.*)\.(.+){3,4}
    RewriteCond %{REQUEST_URI} !(.*)/$
    RewriteRule ^(.*)$ /$1/ [L,R=301]

    RewriteCond %{HTTP_HOST} ^(.+).wallpapers.net [NC]
    RewriteRule ^(.*)$ http://wallpapers.net/$1 [R=301,NC,L]

    RewriteRule ^([^/]*)/([^/]*)/([^/]*)/([^/]*)-desktop-wallpapers([^/]*)(/){0,1}([^/]*)$ $4-desktop-wallpapers$5$6$7
    RewriteRule ^([^/]*)/([^/]*)/([^/]*)-desktop-wallpapers([^/]*)(/){0,1}([^/]*)$ $3-desktop-wallpapers$4$5$6
    RewriteRule ^([^/]*)/([^/]*)-desktop-wallpapers([^/]*)(/){0,1}([^/]*)$ $2-desktop-wallpapers$3$4$5
    RewriteRule ^([^/]*)/([^/]*)/([^/]*)/([^/]*)-wallpapers([^/]*)(/){0,1}([^/]*)$ $4-wallpapers$5$6$7
    RewriteRule ^([^/]*)/([^/]*)/([^/]*)-wallpapers([^/]*)(/){0,1}([^/]*)$ $3-wallpapers$4$5$6
    RewriteRule ^([^/]*)/([^/]*)-wallpapers([^/]*)(/){0,1}([^/]*)$ $2-wallpapers$3$4$5

    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^(.*)$ index.php?%{QUERY_STRING}&resource=$1 [L]

    Works like a champ! Enjoy and thank me however you may want to lol =)

    Posted 2 years ago #
  2. Hi,

    From what I see you uncommented everything. You most likely only need to put
    RewriteBase /

    to make it work.

    So the file should look like this

    RewriteEngine On

    RewriteBase /

    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_URI} !(.*)\.(.+){3,4}
    RewriteCond %{REQUEST_URI} !(.*)/$
    RewriteRule ^(.*)$ /$1/ [L,R=301]

    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^(.*)$ index.php?%{QUERY_STRING}&resource=$1 [L]

    Posted 2 years ago #
  3. yea I fiddled around with the file and well she works! heh

    Posted 2 years ago #
  4. This is the latest .htaccess file in latest version. This should be used in case your site is not working correctly with the
    old one.

    #Options +FollowSymlinks
    RewriteEngine Off
    RewriteEngine On

    #change / with the relative path if you install the script in a subdirectory
    #RewriteBase /

    #This is for redirecting links with any subdomain to no subdomain
    #RewriteCond %{HTTP_HOST} ^(.+).yourdomain.com [NC]
    #RewriteRule ^(.*)$ http://yourdomain.com/$1 [R=301,NC,L]

    #This is for redirecting links without trailing / to links with trailing /
    #RewriteCond %{REQUEST_FILENAME} !-f
    #RewriteCond %{REQUEST_URI} !(.*)\.(.+){3,4}
    #RewriteCond %{REQUEST_URI} !(.*)/$
    #RewriteRule ^(.*)$ /$1/ [L,R=301]

    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^(.*)$ index.php?resource=$1 [L,QSA]

    Posted 2 years ago #
  5. can you help me with this: http://wallpaperscript.com/forum/topic/add-new-directory

    Posted 2 years ago #

RSS feed for this topic

Reply

You must log in to post.