Help - Search - Members - Calendar
Full Version: .htaccess Help
Zymic Webmaster Forums > Web Design & Development > General Web Design Discussion
Gibbons
I'm trying to achieve the following:

http://www.domain.com/journal.php?post=1

change to:

http://www.domain.com/journal/title-of-post

blink.gif
swordz
How is title-of-post generated/stored? You could do http://www.domain.com/journal.php?post=title-of-post to http://www.domain.com/journal/title-of-post quite easily. Doing what you want is possible, but I believe requires a server restart, which is not. Alternatively just mod_rewrite everything to the index, and work out what they want using server variables.

swordz
weasleysww
Sorry if I'm interfering in your topic, but I didn't want to make another .htaccess help topic.
Ok, as a few of you know I'm not very experienced. I want to protect some files with .htaccess and .htpasswd, and I'm following a tutorial, and it says I need the full path to the folder:
QUOTE
/full/path/to/.htpasswd should be the full path to the .htpasswd file that you uploaded earlier. The full path is the path to the file from the Web server's volume root - for example, /home/username/.htpasswd or C:\wwwroot\username\.htpasswd. (If you're not sure of the full path to your site or home directory, ask your Web hosting company for this info.)
I'm so sorry, I'm still learning, does that mean like /directory/directory/file or something else?
-JC
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2012 Invision Power Services, Inc.