[PHP] php links doest work when im using mod rewrite
i starting to use mod rewrite but all my images or js links doest work my current query string is: index.php?r=blogpage=2 i want to change it with this: /blog/2 this is my .htaccess file RewriteEngine On RewriteRule ^([^/]*)/([^/]*)$ /framework/?r=$1page=$2 [L] but none of my js or css cant find i need a way with php to make urls thanks
Re: [PHP] php links doest work when im using mod rewrite
Try to add RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d that should exclude existing files and directories from rewriting... Am 01.06.2013, 22:39 Uhr, schrieb Farzan Dalaee farzan.dal...@gmail.com: i starting to use mod rewrite but all my images or js links doest work my current query string is: index.php?r=blogpage=2 i want to change it with this: /blog/2 this is my .htaccess file RewriteEngine On RewriteRule ^([^/]*)/([^/]*)$ /framework/?r=$1page=$2 [L] but none of my js or css cant find i need a way with php to make urls thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] php links doest work when im using mod rewrite
thanks for answer but it doesnt work 404 Not Found - http://localhost/framework/blog/files/upload/images/ but my images folder in: http://localhost/framework/files/upload/images/ On Sun, Jun 2, 2013 at 1:11 AM, Julian Wanke jswp...@gmx.at wrote: Try to add RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d that should exclude existing files and directories from rewriting... Am 01.06.2013, 22:39 Uhr, schrieb Farzan Dalaee farzan.dal...@gmail.com: i starting to use mod rewrite but all my images or js links doest work my current query string is: index.php?r=blogpage=2 i want to change it with this: /blog/2 this is my .htaccess file RewriteEngine On RewriteRule ^([^/]*)/([^/]*)$ /framework/?r=$1page=$2 [L] but none of my js or css cant find i need a way with php to make urls thanks
Re: [PHP] php links doest work when im using mod rewrite
This is more of an apache question. You can try below url. http://lmgtfy.com/?q=mod_rewrite+exclude+css On 1 June 2013 21:39, Farzan Dalaee farzan.dal...@gmail.com wrote: i starting to use mod rewrite but all my images or js links doest work my current query string is: index.php?r=blogpage=2 i want to change it with this: /blog/2 this is my .htaccess file RewriteEngine On RewriteRule ^([^/]*)/([^/]*)$ /framework/?r=$1page=$2 [L] but none of my js or css cant find i need a way with php to make urls thanks -- A.
Re: [PHP] php links doest work when im using mod rewrite
localhost means the files are stored on your computer so I can't access them ;)Wait, you are trying to change the image directories? I'm a bit confused.Am 01.06.2013, 22:44 Uhr, schrieb Farzan Dalaee farzan.dal...@gmail.com:thanks for answer but it doesnt work404 Not Found - http://localhost/framework/blog/files/upload/images/ but my images folder in:http://localhost/framework/files/upload/images/ On Sun, Jun 2, 2013 at 1:11 AM, Julian Wanke jswp...@gmx.at wrote: Try to add RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d that should exclude existing files and directories from rewriting... Am 01.06.2013, 22:39 Uhr, schrieb Farzan Dalaee farzan.dal...@gmail.com: i starting to use mod rewrite but all my images or js links doest work my current query string is: index.php?r=blogpage=2 i want to change it with this: /blog/2 this is my .htaccess file RewriteEngine On RewriteRule ^([^/]*)/([^/]*)$ /framework/?r=$1page=$2 [L] but none of my js or css cant find i need a way with php to make urls thanks -- Erstellt mit Operas E-Mail-Modul: http://www.opera.com/mail/
Re: [PHP] php links doest work when im using mod rewrite
Farzan, I don't have a direct answer to your question, but I work a lot with a wiki application called PmWiki that does something very similar to what you are doing. Their instructions for using clean urls such as http://example.com/blog/2 (only in their syntax) can be seen here: http://www.pmwiki.org/wiki/Cookbook/CleanUrls I don't know if that will help at all, but I've used it successfully. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP Links
I'm trying to find out how make following happen Example: http://www.example.com/test.php?id=20 What makes this happen and how do I make it. Thanks Thomas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP Links
I'm trying to find out how make following happen Example: http://www.example.com/test.php?id=20 What makes this happen and how do I make it. Thanks Thomas Thomas: It's unclear as to what you want. To make this happen, you click it: http://www.example.com/test.php?id=20 To make this happen in html for others to click, you can use: a href=http://www.example.com/test.php?id=20;/a To make this happen in html with php for others to click, you can use: a href=http://www.example.com/test.php?id=?php echo($value);?/a Just where and what are you trying to do? tedd -- http://sperling.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP Links
This one time, at band camp, Thomas Bonham [EMAIL PROTECTED] wrote: I'm trying to find out how make following happen Example: http://www.example.com/test.php?id=20 in test.php put this code ?php echo $_GET['id']; ? Kevin -- Democracy is two wolves and a lamb voting on what to have for lunch. Liberty is a well-armed lamb contesting the vote. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php