![]() |
ubuntu.com - launchpad.net - ubuntu help
|
|
|||||||
Hello, Unregistered You are browsing a READ only archive of the main support categories pre 4/21/2008. You will not be able to post or reply any threads in this section.
|
|
Server Platforms Discussion regarding any server based ubuntu release. |
|
|
Thread Tools | Display Modes |
|
|
|
|
#1 |
|
5 Cups of Ubuntu
![]() |
mod_rewrite
Hi
I installed Apache/MySQL/PHP4 and it's all working fine. However, I now have a need to enable/install mod_rewrite. This is the first real experience I've had setting up Apache, usually I just use a hosted environment. Could someone walk me through enabling or installing mod_rewrite please? Thanks -Crisp |
|
|
|
|
|
#2 |
|
Gee! These Aren't Roasted!
![]() |
Re: mod_rewrite
A quick google search turned this up: http://httpd.apache.org/docs/mod/mod_rewrite.html
If that's not comprehensive enough, I don't know what is ^ ^;;
__________________
I seem to have discovered a truly remarkable proof for Fermat's Last Theorem, which this siggie is too small to contain. |
|
|
|
|
|
#3 | |
|
5 Cups of Ubuntu
![]() |
Re: mod_rewrite
Quote:
-Crisp |
|
|
|
|
|
|
#4 | |
|
Way Too Much Ubuntu
![]() Join Date: Jan 2005
Beans: 225
|
Re: mod_rewrite
Quote:
sudo a2enmod rewrite Adds a .load file to /etc/apache2/mods-enabled/ that loads the module. Then, you have to make sure that RewriteEngine on is somewhere in your Apache configuration. WordPress 1.5 inserts the RewriteEngine directive in the .htaccess file in the directory where WordPress is installed. I'm sure in apache2.conf would be fine to. Looks something like this: <IfModule mod_rewrite.c> RewriteEgine On </IfModule> |
|
|
|
|
|
|
#5 |
|
Has an Ubuntu Drip
![]() Join Date: Mar 2005
Location: Melbourne, FL. USA
Beans: 577
Gutsy Gibbon Testing
|
Re: mod_rewrite
Again, a reply to an old post, but this has helped me out - and I just wanted to correct a typo in the last reply, incase someone is not able to determine the error printed by apache..
It should be: Code:
<IfModule mod_rewrite.c> RewriteEngine On </IfModule> Cb |
|
|
|
|
|
#6 |
|
5 Cups of Ubuntu
![]() Join Date: Jun 2005
Location: Sugar Land, TX
Beans: 17
|
Re: mod_rewrite
Thank you very much for the answer. Worked very well for me. Goes to show that even though the reply was delayed, it can still be useful for people searching for information at a much later date - people like me!!!
|
|
|
|
|
|
#7 | ||
|
A Carafe of Ubuntu
![]() |
Re: mod_rewrite
Quote:
Code:
mark@tuna:/usr/share/gallery/css$ ll /etc/apache2/mods-enabled/rewrite.load lrwxrwxrwx 1 root root 40 2005-10-24 21:03 /etc/apache2/mods-enabled/rewrite.load -> /etc/apache2/mods-available/rewrite.load Quote:
Code:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /gallery/
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^\.\?/]+)/([0-9]+)$ /gallery/view_photo.php?set_albumName=$1&index=$2 [QSA]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^\.\?/]+)/([A-Za-z_0-9\-]+)$ /gallery/view_photo.php?set_albumName=$1&id=$2 [QSA]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^\.\?/]+)/$ /gallery/$1 [R]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^\.\?/]+)$ /gallery/view_album.php?set_albumName=$1
[QSA]
</IfModule>
-mark
__________________
--that's carpenter, not the nasty fish... |
||
|
|
|
|
|
#8 |
|
Just Give Me the Beans!
![]() Join Date: Nov 2005
Beans: 46
|
Re: mod_rewrite
Code:
/etc/init.d/apache2 start * Starting web server (Apache2)... [fail] |
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|