SitePoint Sponsor

User Tag List

Results 1 to 8 of 8
  1. #1
    SitePoint Addict SniperUK's Avatar
    Join Date
    Jul 2000
    Location
    UK
    Posts
    367
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ok what do i change in .htaccess so that instaed of having http://mydomain.com/index.php?id=main i could make it to
    http://mydomain.com/?id=main

    but before that how can i view my current .htaccess file
    i am hosted with hostrocket but as they have set it so users cant view the file for reasons such as deleteing it
    by mistake etc its a hidden file which ftp softeare do i need to use to view that file?

    also as i have some long links how can i set a script so i inster the actula link but i only link to that script so it would look something like this goto.php?id=advert and it redirects to the url!

    I saw somehing on thing or another board but forgot to make a note of it on how it was done!

    Thanks

  2. #2
    SitePoint Wizard TWTCommish's Avatar
    Join Date
    Aug 1999
    Location
    Pittsburgh, PA, USA
    Posts
    3,910
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Run a search on Download.com for an FTP program...basically any standard FTP program should work.

    As for redirection...URLs are usually stored in a database and linked with the ID number...there are pre-made banner rotators that should be able to help you out.

  3. #3
    The Hiding One lynlimz's Avatar
    Join Date
    Jul 2000
    Location
    Singapore
    Posts
    2,103
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    hi,

    if you're trying to shorten the url by removing index.php, you can just do this.

    ( if i got your message correctly )

    add this line into your .htaccess file

    DirectoryIndex index.php

    all requests to: http://www.domain.com would refer striaght to index.php, therefore, you can specify directions by: http://domain.com/?action=anything

    I'm assuming:
    - you have .htaccess support
    - your server is running apache
    - you wanna do that! ehehz

    hope that helps

  4. #4
    Freelance Web Designer KeithMcL's Avatar
    Join Date
    Oct 1999
    Location
    Dublin, Ireland
    Posts
    1,125
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Actually Chris, not all FTP programs will show you the .htaccess file. I know, because I kept getting the login window when trying to access my main page on my site once and using WS_FTP, CuteFTP, LeechFTP among others, none would show the file.

    Eventually I had to run ftp from the run line in wondows and ftp into my site that way. Then go into the folder where you think the file is and type ls -al. That will show you all files including hidden ones. If it's there type delete .htaccess and hit return. That should delete it )

    Hope this helps.

    rgds,

  5. #5
    The Hiding One lynlimz's Avatar
    Join Date
    Jul 2000
    Location
    Singapore
    Posts
    2,103
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    hmm..
    try checking your ftp configuration.
    some have options of hiding all files/folders beginning with a .XXXXX

    if they dun, try getting another ftp client like smartftp http://smartftp.com
    or aceftp 1.31...

  6. #6
    SitePoint Wizard TWTCommish's Avatar
    Join Date
    Aug 1999
    Location
    Pittsburgh, PA, USA
    Posts
    3,910
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Really, Keith? That's quite odd...is that something the host can do purposely? I've never had a problem accessing the file with CuteFTP or WS_FTP...

  7. #7
    SitePoint Member
    Join Date
    Sep 2000
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hello,
    You can view .htaccess through your Control Panel, just go to the directory where it is, and type in .htaccess in the "Edit/Create File" text field, then click the submit button right next to it, and then you'll be able to view your .htaccess file.

    To view more information on the .htaccess file, visit the newest thread in our KnowledgeBase: .htaccess Thread
    - Steve Wilson | steve@rocketsupport.com
    - HostRocket! Launch Your Site Today
    - http://www.hostrocket.com | KnowledgeBase

  8. #8
    SitePoint Addict SniperUK's Avatar
    Join Date
    Jul 2000
    Location
    UK
    Posts
    367
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    thanks all smartftp does allow you to view it!
    Thanks


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
  •