Wallpaper Script Forum » Bug Support

URL redirect

(3 posts)
  1. and
    Member

    Hi,

    I have a problem with my urls.

    The script is installed in a directory of the main site.

    When I access http://siteurl.com/wallpapers/ the script works fine, but when I access http://siteurl.com/wallpapers (without "/") I am redirected to http://siteurl.com/wallpapers/?&resource=/home/username/public_html/wallpapers.

    Maybe a change in. Htaccess fix the problem?

    Can anyone help me?

    Thanks!

    Posted 1 year ago #
  2. Hi Guys,

    Have you check the link option in the code.May be there will be second link where you redirect.

    deniel.

    Posted 1 year ago #
  3. and
    Member

    In .htaccess? The current code is this below:

    #php_flag display_errors On
    #Options +FollowSymlinks
    RewriteEngine Off
    RewriteEngine On

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

    #This is for redirecting links with any subdomain to no subdomain
    #RewriteCond %{HTTP_HOST} ^(.+).wallpapers.net [NC]
    #RewriteRule ^(.*)$ http://wallpapers.net/$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]

    #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]

    Any idea?

    Posted 1 year ago #

RSS feed for this topic

Reply

You must log in to post.