|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
.htaccess
I have 1and1 as my host.
I believe that my .htaccess is causing problems for my site. I click on a category and it gives me a 404 error. Can someone help? rachacha.org htaccess file: # # Only upload if you want to use the Search Engine Friendly urls. # RewriteEngine On RewriteRule ^product-([0-9]+)/([0-9]+)/.*.html&sort=([a-z]+) product.php?cid=$1&id=$2&sort=$3 [L] RewriteRule ^product-([0-9]+)/([0-9]+)/.*.html&view=(.*) product.php?cid=$1&id=$2&view=$3 [L] RewriteRule ^product-([0-9]+)/([0-9]+)/.*.html product.php?cid=$1&id=$2 [L] RewriteRule ^product-([0-9]+)/.*.html&sort=(.*) product.php?cid=$1&sort=$2 [L] RewriteRule ^product-([0-9]+)/.*.html&view=(.*) product.php?cid=$1&view=$2 [L] RewriteRule ^product-([0-9]+)/.*.html product.php?cid=$1 [L] RewriteRule ^listing-([0-9]+)/.*.html listing.php?sid=$1 [L] |
|
#2
|
|||
|
|||
|
try (temporarily) renaming the .htaccess file and see if you still get the 404
|
|
#3
|
|||
|
|||
|
.htaccess
Still get 404s
|
|
#4
|
|||
|
|||
|
Then I would guess that it's not the .htaccess
are you sure the file you are requesting is where the it is supposed to be? and named correctly etc...? |
|
#5
|
|||
|
|||
|
rachacha.org
loads ok for me... is the the page that you are getting a 404? |
|
#6
|
|||
|
|||
|
.htaccess
It happens when you click on a category!
|
|
#7
|
|||
|
|||
|
h**p://rachacha.org/product-23/Communications.html
In your web root directory (www or html docs) make sure there is a sub-directory named "product-23" make sure in that directory is a file called "Communications.html" file names are case sensitive |
|
#8
|
|||
|
|||
|
.htaccess
Quote:
No luck! I had attempted this as a solution. |
|
#9
|
|||
|
|||
|
.htaccess
This is how it turned out.
It all works now! Thanks all!!! # # Only upload if you want to use the Search Engine Friendly urls. # Options +FollowSymLinks RewriteBase / RewriteEngine On RewriteRule ^product-([0-9]+)/([0-9]+)/.*.html&sort=([a-z]+) product.php?cid=$1&id=$2&sort=$3 [L] RewriteRule ^product-([0-9]+)/([0-9]+)/.*.html&view=(.*) product.php?cid=$1&id=$2&view=$3 [L] RewriteRule ^product-([0-9]+)/([0-9]+)/.*.html product.php?cid=$1&id=$2 [L] RewriteRule ^product-([0-9]+)/.*.html&sort=(.*) product.php?cid=$1&sort=$2 [L] RewriteRule ^product-([0-9]+)/.*.html&view=(.*) product.php?cid=$1&view=$2 [L] RewriteRule ^product-([0-9]+)/.*.html product.php?cid=$1 [L] RewriteRule ^listing-([0-9]+)/.*.html listing.php?sid=$1 [L] |
![]() |
| Viewing: Dev Shed Forums > Web Site Management > Scripts > .htaccess |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|