question2answer

how to change url structure with 301 code q2a

六月ゝ 毕业季﹏ 提交于 2020-01-06 10:54:50
问题 I have a problem with duplicate contents in search engine . I can access a page in q2a web site using both of these url's ! http://www.domain.com/index.php?qa=1306&qa_1=title http://www.domain.com/1306/title I want to redirect the first one to second 1 how ca I do it ? I tried codes in these page and other things too but none of them works :( htaccess for changing index.php?ms=user to /user my current htaccess is : DirectoryIndex index.php <IfModule mod_rewrite.c> RewriteEngine On

Rewrite URL on Glassfish with Quercus' PHP

自闭症网瘾萝莉.ら 提交于 2019-12-11 02:34:23
问题 I have Glassfish 3 server and have added Quercus 4.0.7 to to be able to run PHP applications on it. Everything works perfectly with it. Now I'm trying to run Question2Answer application on my server. I was able to open application but it's not allowing me to navigate from page to page because they are using .htaccess file to rewrite the URL. I was wondering how do we rewrite the URL in this case? Here is what Question2Answer's .htaccess has inside: DirectoryIndex index.php RewriteEngine On