Welcome to WebmasterWorld Guest from 54.159.214.27

Forum Moderators: Ocean10000 & incrediBILL & phranque

Redirect folder to another folder only if at the end of url

   
1:20 pm on Sep 24, 2010 (gmt 0)



Hello, i have some 404 urls and i need to fix.

I need an apache rewrite rule that searches for the folder /imoveis but ONLY if it is positioned at the end of the URL and changes it with the folder /imobiliaria,

I have some other URLS where the folder /imoveis/ is in the middle of the urls, i DONT want to change these, only those that have the /imoveis at the end.

How can i do this? please some light....
2:28 pm on Sep 24, 2010 (gmt 0)

WebmasterWorld Senior Member jdmorgan is a WebmasterWorld Top Contributor of All Time 10+ Year Member



This is a fairly trivial application of a mod_rewrite RewriteRule or a mod_alias RedirectMatch and regular-expressions pattern-matching.

Please review the resources cited in our Apache Forum Charter and the tutorials and examples in our Apache Forum Library, and then post your best-effort attempt at coding a solution as a basis for continued discussion.

Thanks,
Jim
2:45 pm on Sep 24, 2010 (gmt 0)



Hello man.

I appreciate your effort but..

Do you realize that sometime people do not just have the TIME to do this? I need help, i need a pieace of code, and i DONT have time to review all the Apache rules, since i am NOT a programmer...

Anyway, if you cant simply HELP, then i hope somebody will do.

Thanks.
11:01 pm on Sep 24, 2010 (gmt 0)

WebmasterWorld Senior Member g1smd is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



There's been at least two very similar questions in the last 48 hours. Check those for example code to use as a basis for getting started.
11:39 pm on Sep 24, 2010 (gmt 0)



well, the point is that in the last 48 hours, i had 2 similar problems"! and i cant study this now, because my BOSS is a pain in the ass! and i am in a big trouble thanks to people like you that want to change the world in one day!
11:44 pm on Sep 24, 2010 (gmt 0)



anybody can help here? please!
1:30 am on Sep 25, 2010 (gmt 0)

WebmasterWorld Senior Member jdmorgan is a WebmasterWorld Top Contributor of All Time 10+ Year Member



We're glad to help you do *your project* but it is *your* project.

If you need a quick fix, consider hiring a contractor. That is the proper business solution. We don't do business here, we do education. Please review our Forum Charter for more information.

Thanks,
Jim
1:44 am on Sep 25, 2010 (gmt 0)



I am very different from you. And i do education too. I teach italian, french, spanish and portuguese..

Anyway man... The world is cool because it is soooo big that leaves space for everyone...
10:11 am on Sep 25, 2010 (gmt 0)

WebmasterWorld Senior Member g1smd is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



The simple fact is that there are more than two thousand threads in this forum answering questions which are very similar to yours. At some point, such as when the volunteers are very busy on other projects, the volunteers have to refer you to those previous answers, and this is just such a time.
2:00 pm on Sep 25, 2010 (gmt 0)



do you realize that the time that you spent writing this bulls@#% is much more than the time you could have spent HELPING SOMEONE?
5:50 pm on Sep 27, 2010 (gmt 0)



anyone helping here please?
 

Featured Threads

My Threads

Hot Threads This Week

Hot Threads This Month