Webmaster Forum


Go Back   Webmaster Forum > Web Development > Coding Forum

Coding Forum Problems with your code? Discuss coding issues, including JavaScript, PHP & MySQL, HTML & CSS, Flash & ActionScript, and more.


Reply
 
LinkBack Thread Tools Display Modes
Share |
  #1 (permalink)  
Old 07-09-2005, 10:12 PM
Junior Member
 
Join Date: 04-08-05
Posts: 3
iTrader: 0 / 0%
Current Directory in htaccess???

Here's my question....let's say I have a several subfolders....

http://www.nothing.com/subfolder/link.html

http://www.nothing.com/subfolder2/link.html



In each case, I'm trying to get .htaccess to rewrite the file with the subfolder involved...so for example...


link-subfoler.html
link-subfolder2.html

This isn't hard to go in and manually type out the name of every sub folder, however, when I start doing a lot of subfolders, it gets tedious...


Is there a way that htaccess can read part of the URL and use the subfolder part of it as part of the rewrite?

That would save me a ton of time! Thanks!
 
Reply With Quote
Go Back   Webmaster Forum > Web Development > Coding Forum

Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP 4.3.10 or 5.0.3? Current Opinions please flashcash5 Coding Forum 0 03-05-2005 02:38 PM
Current URI Shawn Coding Forum 1 07-07-2004 02:42 AM
[Linux]Password protect a web site directory using .htaccess QT_ Dedicated Servers 0 01-08-2004 07:07 AM


V7N Network
Get exposure! V7N I Love Photography V7N SEO Blog V7N Directory


All times are GMT -7. The time now is 05:32 PM.
Powered by vBulletin
Copyright © 2000-2013 Jelsoft Enterprises Limited.
Copyright © 2003 - 2013 Escalate Media LP




Search Engine Optimization by vBSEO 3.6.0 RC 2 ©2011, Crawlability, Inc.