Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
Lokeh Posted May 7, 2010 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
Lokeh Posted May 9, 2010 Author 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...
CoolRock Posted June 3, 2010 Posted June 3, 2010 I still can't figure what exactly does this rewriterule is for.
Garthilk Posted July 2, 2010 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?
Recommended Posts
Archived
This topic is now archived and is closed to further replies.