Jump to content

Mod_Rewrite question


Recommended Posts

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

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&section=pages&page=page_name [NC,L]

Jut in case someone need this...

Link to comment
Share on other sites

  • 4 weeks later...
  • 5 weeks later...

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...