Welcome Guest, Not a member yet? Register   Sign In
Remove Directory Name in URL
#1

[eluser]gomji9star[/eluser]
here is an example of current site:
http://www.example.com/directory/filename.html

i want to remove the directory folder so that it works like this:
http://www.example.com/filename.html

I have spent well over an entire day trying many things, including running the rewritelog, which didn't give any clear insights (I tried over 30 different things). any ideas?

if it helps, here my purpose: basically, I prefer to keep lots of my files organized on the web-server in different directories, while keeping everything appearing at the base level of the website for SEO reasons--prominence of filename in url)

thanks in advance!
#2

[eluser]stommert[/eluser]
have you tried the routes?
something like this should do the trick
Code:
$route['filename'] = 'directory/filename';

I hope it works...
#3

[eluser]danmontgomery[/eluser]
http://ellislab.com/codeigniter/user-gui...uting.html




Theme © iAndrew 2016 - Forum software by © MyBB