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?????????