11 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for mattster

Dear All, This must be a very common problem, but yet nowhere on the internet wishes to display a working answer. I am in a sticky situation. I have the following .htaccess file on my local webserver: http://localhost/testsite/.htaccess DirectoryIndex home.php?view=home RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} …

Member Avatar for mattster
0
350
Member Avatar for fheppell

I have a problem with one of my php scripts. I've got a file called view.php. If I go to test.com/view?id=7575 it comes up with a 404 error. However if I go to test.com/view.php?id=7575 it works. Why is this?

Member Avatar for gogs85
0
204
Member Avatar for Tinnin

Hi all, I am running through the book "PHP Advanced and Object Oriented Programming" by Larry Ullman and I am currently trying to use a mod_rewrite to change my GETs to look like standard URLs. I am running the site on my localhost. My .htaccess file is being read (tested …

Member Avatar for Tinnin
0
224
Member Avatar for randomkid73

Hi all, I'm having some issues with RewriteRules conflicting in my .htacccess file. For starters, here's the file: <IfModule mod_rewrite.c> Options -MultiViews RewriteEngine On #Start forum rules RewriteCond %{REQUEST_FILENAME} !-f RewriteRule \.(jpeg|jpg|gif|png)$ /public/404.php [NC,L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] #Start wiki rules RewriteRule ^/?wiki(/.*)?$ %{DOCUMENT_ROOT}/w/index.php …

Member Avatar for randomkid73
0
206
Member Avatar for lukas.vandendijssel

This .htaccess throws me a 500 error. I've Googled/tried everything. RewriteEngine on RewriteRule ^([0-9]{6})$ decode.php?shorturl=$1 [L] It's for a URL shortener. I am new to this stuff.

Member Avatar for diafol
0
438
Member Avatar for mohamedasif18

Hi Guyz, Am facing an issue that $_GET[] not working in my Mod_Rewrite, My Odd URL is : http://groupon.ig-demo.com/index.php?id=12&dealname=Oil%20Treatment My Friendly URL is : http://groupon.ig-demo.com/id/12/Oil%20Treatment.htm And My HTACCESS is : Options +FollowSymlinks DirectoryIndex index.php RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php?/$1 [L] RewriteRule ^id/([^/]*)/([^/]*)\.htm$ …

Member Avatar for diafol
0
296
Member Avatar for wimmer

This is the first time I have ever tried to use mod_rewrite and have been stuck for a couple days. I am trying to change [url]www.mysite.com/example6.php?id=games[/url] to [url]www.mysite.com/example6/games[/url] Is this even achievable? Any advice will be very much appreciated!

Member Avatar for somedude3488
0
223
Member Avatar for jakizak

Ahhhh! OK, so I've been learning PHP for about 7 years now on and off, but never have I taken the time to look into URL rewriting. Until now I've not needed it, but you can guarantee the one thing you think you wont need, you need! I have the …

Member Avatar for blocblue
0
353
Member Avatar for codemonkey88

Does anyone know about cleaning up URLs for CMS? I had a .htaccess file containing the following code (or so far as I can remember) [CODE] RewriteEngine On RewriteRule ^([a-z])$ /index.php?url=$1 [L] RewriteRule ^/article/([a-z])$ /index.php?url=$1&type=news [L] [/CODE] which was working fine ie: [url]www.mysite.com/somepage[/url] loaded the "mypage" content into my index.php …

Member Avatar for codemonkey88
0
249
Member Avatar for SoN9ne

I have no issues with setting up the mod_rewrite and having it create the clean URLs. My question is for more experienced htaccess users and I am wondering if there is a simple solution to my dilemma. My URLs without the cleanup look like: index.php?ctrl=portal&mode=main or index.php?ctrl=portal&mode=edit&id=2 I want my …

Member Avatar for djcodesa
0
237
Member Avatar for assaf

Hi I'm trying to create tag pages based on one php page that will be re-written to the tag/[tag].html I'm not a programmer so my question is pretty basic. What I have done until now is to create the tagdetail.php and a call to the tag pages that have this …

0
82

The End.