Jump to content


Photo

1000 folder redirect to other url


  • Please log in to reply
2 replies to this topic

#1 jame_2d

jame_2d
  • New Members
  • Pip
  • Newbie
  • 5 posts

Posted 23 August 2006 - 01:10 PM

when the user enter

www.atkherm.com/a
www.atkherm.com/b
www.atkherm.com/c
www.atkherm.com/d
www.atkherm.com/e

i want to redirect to

www.atkherm.com/a/a
www.atkherm.com/a/b
www.atkherm.com/a/c
www.atkherm.com/a/d
www.atkherm.com/a/e

but i have 100000 folder so how can i?

from www.atkhmer.com

#2 oldmanice

oldmanice
  • Members
  • PipPipPip
  • Advanced Member
  • 134 posts
  • LocationIn Your Garden At Night

Posted 30 August 2006 - 07:31 PM

If you want diffrant folder names you will have to go into each folder and create a folder called what ever you want and icnore the other one and put the same things in

For example if you have  www.atkherm.com/a you must have a folder called a and you want www.atkherm.com/a/b then in that folder make one called b to access it as youve asked
Join my Froums www.phpbbplanet.com/darkwinter

#3 wildteen88

wildteen88
  • Staff Alumni
  • Advanced Member
  • 10,482 posts
  • LocationUK, Bournemouth

Posted 31 August 2006 - 09:16 AM

look into mod rewrite. Following should do the trick:
RewriteEngine On
RewriteRule ^([a-zA-Z])$ /a/$1

What this will do is serve whats in a/folderLetterHERE. For example when do www.atkherm.com/e it'll server whats in atkherm.com/a/e




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users