Lokeh Posted May 7, 2010 Share Posted May 7, 2010 Hey everyone. Here is what I want to do... I have an URL like this: http://www.domain.com/page/page_name and I want to make it look like this: http://www.domain.com/my_new_name This is what I have been trying (i know it worked before): RewriteRule ^my_new_name/?$ page/page_name [NC] But, obiously, it doesn't work. Thank you in advance for your answers.PS: I'm using:Redirect to new friendly URL format Use "301" for friendly URL redirects? URL Type - Query String Use .htaccess mod_rewrite Incorrect Permalink Handling - 301 header Link to comment Share on other sites More sharing options...
Lokeh Posted May 9, 2010 Author Share Posted May 9, 2010 C'mon guys. No one has any solution for this? Link to comment Share on other sites More sharing options...
Lokeh Posted May 9, 2010 Author Share Posted May 9, 2010 Found the solution: A rule like this:RewriteRule ^my_new_name/?$ page/page_name [NC] will never work, dunno why... The rule should be like this:RewriteRule ^my_new_name/?$ index.php?app=ccs&module=pages§ion=pages&page=page_name [NC,L] Jut in case someone need this... Link to comment Share on other sites More sharing options...
CoolRock Posted June 3, 2010 Share Posted June 3, 2010 I still can't figure what exactly does this rewriterule is for. Link to comment Share on other sites More sharing options...
Garthilk Posted July 2, 2010 Share Posted July 2, 2010 I'm sorry, I get what you're trying to do, I'd like to see if I can do the same. Remove /page/ from the URL, how did you do this again? Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.