URL ReWriting Problem?
Hello there...
Any body help me to fix this problem regarding .htaccess
I have written this code to convert my url from .php to .html
RewriteEngine on
RewriteRule shopping/leftproducts/([^/]+).html$ /shopping/leftproducts.php?c_id=$1 [L]
but this couldn't work for me...
i coundn't find where the problem occurs..
My url is like :
www.something.com/shopping/leftproducts.php?c_id=5
please solve my problem
Thanks In Advance
Shanti.
Shanti C
Posting Virtuoso
1,642 posts since Jul 2008
Reputation Points: 137
Solved Threads: 162
hello there...
please help on this.....
Shanti C
Posting Virtuoso
1,642 posts since Jul 2008
Reputation Points: 137
Solved Threads: 162
hello..
anybody please help on this...
Shanti C
Posting Virtuoso
1,642 posts since Jul 2008
Reputation Points: 137
Solved Threads: 162
very very thanks for your input....
I got this error:
500 Internal Server Error
The request was not completed. The server met an unexpected condition.
something/mysite/shopping/leftproducts.php?c_id=5 (port 80)
Please forward this error screen to 74.53.25.162's WebMaster.
im my site i have a folder like shopping..and my leftproducts.php is in shopping folder..but index page is our side of shopping folder..
then where should i placed this .htaccees file....
thank again
waiting for your reply...
Shanti C
Posting Virtuoso
1,642 posts since Jul 2008
Reputation Points: 137
Solved Threads: 162
thanks again for your reply...
i got the same error after i tried as you directed...
please give more inputs on this..
thank you..
Shanti C
Posting Virtuoso
1,642 posts since Jul 2008
Reputation Points: 137
Solved Threads: 162
have you determined that mod_rewrite is enabled in your server
500 Internal server error often means the module is not compiled in
almostbob
Posting Sensei
3,149 posts since Jan 2009
Reputation Points: 571
Solved Threads: 376
thanks bob...
how to know that is enabled or not...
if not how to enable it????
Shanti C
Posting Virtuoso
1,642 posts since Jul 2008
Reputation Points: 137
Solved Threads: 162
Any way thanks for your suggestions...
I will do more work on this...
thank again..
Anybody else here to help me????
Shanti C
Posting Virtuoso
1,642 posts since Jul 2008
Reputation Points: 137
Solved Threads: 162
may be present but not enabled for this folder
if the commerce package is 'theirs' the host may not want any rewrite of the urls to 'break' the shopping cart (thought process only not suggesting any impropriety)
can only ask the provider
too many possibilities to examine via thread posts
almostbob
Posting Sensei
3,149 posts since Jan 2009
Reputation Points: 571
Solved Threads: 376
k thank you so much...
i will go to know about that...
thanks again...
Shanti C
Posting Virtuoso
1,642 posts since Jul 2008
Reputation Points: 137
Solved Threads: 162
Is the re-write in .htaccess means even I type page.php?id=3&t=456 it all redirects to a certain url like "page/3/456"?
php_noob
Junior Poster in Training
87 posts since Jul 2007
Reputation Points: 10
Solved Threads: 2
Is the re-write in .htaccess means even I type page.php?id=3&t=456 it all redirects to a certain url like "page/3/456"?
ya some thing like that...
it depends on our rewriting rule...
Shanti C
Posting Virtuoso
1,642 posts since Jul 2008
Reputation Points: 137
Solved Threads: 162
Is the re-write in .htaccess means even I type page.php?id=3&t=456 it all redirects to a certain url like "page/3/456"?
ya some thing like that...
it depends on our rewriting rule...
in this particular case noob,
the rule loads the file in the ?id=3&t=456
but makes the url display as page/3/456 so that the user and searchbots see a nice tree structure of files in folders that may not exist, but work like they do.
the site may be stored in database table 'alpha' and not have more than index.php in a root folder, at extreme.
almostbob
Posting Sensei
3,149 posts since Jan 2009
Reputation Points: 571
Solved Threads: 376
oh alright!
because I have the same problem "PAGE CANNOT BE DISPLAYED"
I have this on my .htaccess
RewriteEngine On
RewriteCond %{REQUEST_URI} !^/index.php.*$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /flexidev/blog/sef/
and still can't get to go.... WHY?!
php_noob
Junior Poster in Training
87 posts since Jul 2007
Reputation Points: 10
Solved Threads: 2
Thank you all for your inputs specially samarudge and almostbob...
Finally i got this worked by gooogling....
Thanks Again...
shanti
Shanti C
Posting Virtuoso
1,642 posts since Jul 2008
Reputation Points: 137
Solved Threads: 162