URL rewrite unsuccessful, have to open the homepage, the other Open is 404 error
Source: Internet
Author: User
URL Rewrite is unsuccessful, can only open the home page, the other Open is 404 error
URL Rewrite is unsuccessful, can only open the home page, the other open is 404 error.
With GoDaddy's luxury Linux host. Customer service said to support the URL rewrite, the site with the douphp1.1, the background has opened the URL rewrite, upload the douphp provided. htaccess to the host root directory. can only open the homepage, product links are not open directly 404 error ... Attach the. htaccess code, please master guidance. Some people say to remove the #rewritebase/front #. I tried, no, someone said to go to http.conf configuration, but there is no FTP inside the folder it.
# Onepage
Rewriterule ^ ([a-z0-9-]+) \.html$ page\.php\?unique_id=$1 [qsa,l]
Rewriterule ^guestbook (/) * ([a-z]*) (/*o*) ([0-9]*] $ guestbook\.php\?rec=$2&page=$4 [qsa,l]
------Solution--------------------
You just test one of the simplest.
Rewriteengine on
Rewriterule ^1.html$ 1.php
Create a 1.php file
Visit 1.html to see if there is any use.
------Solution--------------------
Can your rewrite take effect?
should be in
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.