URL Rewrite is unsuccessful, can only open the home page, the other Open is 404 error

Source: Internet
Author: User
Tags godaddy customer service
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.




Order Deny,allow
Deny from all


Rewriteengine on

#RewriteBase/
Rewritecond%{request_filename}!-f
Rewritecond%{request_filename}!-d
Rewritecond%{request_uri}!. *\. (ICO|GIF|JPG|JPEG|PNG|JS|CSS)

# Main
Rewriterule ^index\.html$ index\.php [L]
Rewriterule ^sitemap\.xml$ sitemap\.php [L]
Rewriterule ^ (404|301) \.html$ $1\.html [L]

# News
Rewriterule ^news (/O) * ([0-9]*) $ article_category\.php\?page=$2 [qsa,l]
Rewriterule ^news (/*) ([a-z0-9-]*) (/*o*) ([0-9]*] $ article_category\.php\?unique_id=$2&page=$4 [QSA,L]

Rewriterule ^news/([0-9]+) \.html$ article\.php\?id=$1&rewrite=1 [qsa,l]
Rewriterule ^news/([a-z0-9-]+)/([0-9]+) \.html$ article\.php\?id=$2&unique_id=$1 [qsa,l]

# product
Rewriterule ^product (/O) * ([0-9]*) $ product_category\.php\?page=$2 [qsa,l]
Rewriterule ^product (/*) ([a-z0-9-]*) (/*o*) ([0-9]*] $ product_category\.php\?unique_id=$2&page=$4 [QSA,L]

Rewriterule ^product/([0-9]+) \.html$ product\.php\?id=$1&rewrite=1 [qsa,l]
Rewriterule ^product/([a-z0-9-]+)/([0-9]+) \.html$ product\.php\?id=$2&unique_id=$1 [QSA,L]

# 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]


Reply to discussion (solution)

Douphp's customer service said their files are no problem, let me find GoDaddy, said is the host problem: GoDaddy customer service said they support the URL rewrite ....
I was buck.

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.

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.



This can be opened oh. Direct access to ***.com/1.html is OK. You can open it.

Can your rewrite take effect?
should be in


In it?

Can your rewrite take effect?
should be in


In it?




In front of Rewriteengine on , and the last [qsa,l] after adding , huh?
No ~

No one to help?????????

  • Related Article

    Contact Us

    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.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.