将网址从特定链接重定向到特定链接

时间:2019-07-24 13:36:38

标签: .htaccess

我需要使用htaccess将特定的URL重定向到另一个特定的位置,我尝试了一些规则,但这只是更改域名。

我需要使用htaccess将Url1重定向到Url2。

@Service
public class PersonService {

    @Autowired
    private PersonRepository personRepository;

    public Object findAll(){
        return personRepository.findAll();
    }

    public Person findById(Long id){
        return personRepository.findOne(id);
    }

0 个答案:

没有答案