Score:0

htaccess not working when I use rewriterule /canonical/url to another with params ?title=some-title

ua flag

I am using a web hosting server that is receiving urls like:

https://www.domain.es/blog/name-of-article

The .htaccess is trying to transform those urls to the GET form:

https://www.domain-name.es/blog-art.php?title=name-of-article

To do it I have, between any others, these two rules in the .htaccess:

# blog.php
RewriteRule ^(.*blog)$ https://www.my-domain.es/blog.php [NC,R=301]
# blog_art.php`
RewriteRule ^(.*blog)\/(.+)$ https://www.my-domain.es/blog_art.php?titulo=$2 [NC,R=301]

The second one is NOT working, it only works on my PC when it is localhost, but NOT working when it is on the web hosting server.

Why?

Any help would be appreciated.

Please, help.

Soren A avatar
mx flag
How is this related to Ubuntu ? Try asking in an Apache forum.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.