homepage Welcome to WebmasterWorld Guest from 54.166.228.100
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / Apache Web Server
Forum Library, Charter, Moderators: Ocean10000 & incrediBILL & phranque

Apache Web Server Forum

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




msg:4206354
 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....

 

jdMorgan




msg:4206388
 2:28 pm on Sep 24, 2010 (gmt 0)

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

imofloripa




msg:4206403
 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.

g1smd




msg:4206623
 11:01 pm on Sep 24, 2010 (gmt 0)

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.

imofloripa




msg:4206628
 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!

imofloripa




msg:4206631
 11:44 pm on Sep 24, 2010 (gmt 0)

anybody can help here? please!

jdMorgan




msg:4206664
 1:30 am on Sep 25, 2010 (gmt 0)

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

imofloripa




msg:4206665
 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...

g1smd




msg:4206768
 10:11 am on Sep 25, 2010 (gmt 0)

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.

imofloripa




msg:4206814
 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?

imofloripa




msg:4207604
 5:50 pm on Sep 27, 2010 (gmt 0)

anyone helping here please?

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved