Scripteen - Web Scripts - Forum: Make .htaccess Usefull - Scripteen - Web Scripts - Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Make .htaccess Usefull

#1 User is offline   ptejada Icon

  • Newbie
  • Pip
  • Group: Members
  • Posts: 9
  • Joined: 09-March 10

Posted 09 March 2010 - 10:56 PM

Update The script to make use of the RewriteRule in the htaccess file.
The Rule could change from:
RewriteRule view-(.*) view.php?filename=$1
To
RewriteRule view/(.*) view.php?filename=$1

This will give user friendly URLs like image shack

so

http://pix.thechozen...8youtubenx9.jpg
and
http://pix.thechozen...8youtubenx9.jpg

will display the same page

all that needs to be done is update the links to absolute path by simply adding / at the beginning of each linked icon, as well as the link structure

so it will look something like
<a href="/view/<?= $line[filename] ?>">

instead of
<a href="view.php?filename=<?= $line[filename] ?>">

Here is the file and occurrences that would need to be change

gallery.php (line 101)
index.php (line 16)
myimages.php (line 93)
myimages.php (line 119)
view.php (line 91)
view.php (line 141)
view.php (line 147)
view.php (line 149)
view.php (line 151)
admin/reports.php (line 90)
lib/upload.js (line 158)
lib/upload.js (line 165)
lib/upload.js (line 166)
lib/upload.js (line 167)
0

#2 User is offline   Sc0rian Icon

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 35
  • Joined: 08-December 08

Posted 11 March 2010 - 11:09 PM

ah awesome thanks dude
0

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users